Displaying 5 results from an estimated 5 matches for "sp_return".
2011 Jul 28
1
[LLVMdev] New Problem: llc -O0: Broken module found, compilation aborted!
...s only work with integral types!
%abbaa = xor i8* %2, %"Call the return address"
Both operands to ICmp instruction are not of the same type!
%3 = icmp eq i32 1892499360, i8* %abbaa
Instruction does not dominate all uses!
%3 = icmp eq i32 1892499360, i8* %abbaa
br i1 %3, label %SP_return, label %CallStackCheckFailBlk
Broken module found, compilation aborted!
0 llc 0x087b2328
Stack dump:
0. Program arguments: llc -O0 overflow.bc
1. Running pass 'Function Pass Manager' on module 'overflow.bc'.
2. Running pass 'Module Verifier' on function '@main'
Abor...
2013 Feb 20
3
[LLVMdev] Is va_arg correct on Mips backend?
...du $4, $5, $4
$BB0_5: # in Loop: Header=BB0_2 Depth=1
lw $4, 24($sp) // arg_ptr2
addiu $1, $4, 8 // arg_ptr2 + 8
sw $1, 24($sp)
b $BB0_1
nop
$BB0_6:
lw $1, 0($3)
lw $3, 56($sp)
bne $1, $3, $BB0_8
lw $2, 40($sp)
# BB#7: # %SP_return
lw $ra, 60($sp) # 4-byte Folded Reload
jr $ra
addiu $sp, $sp, 64
$BB0_8: # %CallStackCheckFailBlk
lw $25, %call16(__stack_chk_fail)($gp)
jalr $25
nop
.set at
.set macro
.set reorder
.end _Z5sum_iiz
$tmp4:
.size _Z5sum_iiz, ($tmp4)-_Z5sum_iiz
.c...
2013 Feb 20
0
[LLVMdev] Is va_arg correct on Mips backend?
...# in Loop: Header=BB0_2 Depth=1
> lw $4, 24($sp) // arg_ptr2
> addiu $1, $4, 8 // arg_ptr2 + 8
> sw $1, 24($sp)
> b $BB0_1
> nop
> $BB0_6:
> lw $1, 0($3)
> lw $3, 56($sp)
> bne $1, $3, $BB0_8
> lw $2, 40($sp)
> # BB#7: # %SP_return
> lw $ra, 60($sp) # 4-byte Folded Reload
> jr $ra
> addiu $sp, $sp, 64
> $BB0_8: # %CallStackCheckFailBlk
> lw $25, %call16(__stack_chk_fail)($gp)
> jalr $25
> nop
> .set at
> .set macro
> .set reorder
> .end _Z5sum_iiz
>...
2013 Feb 19
0
[LLVMdev] Is va_arg correct on Mips backend?
Which part of the generated code do you think is not correct? Could you be
more specific?
I compiled this program with clang and ran it on a mips board. It returns
the expected result (21).
On Tue, Feb 19, 2013 at 4:15 AM, Jonathan <gamma_chen at yahoo.com.tw> wrote:
> I check the Mips backend for the following C code fragment compile result.
> It seems not correct. Is it my
2013 Feb 19
2
[LLVMdev] Is va_arg correct on Mips backend?
I check the Mips backend for the following C code fragment compile result. It seems not correct. Is it my misunderstand or it's a bug.
//ch8_3.cpp
#include <stdarg.h>
int sum_i(int amount, ...)
{
int i = 0;
int val = 0;
int sum = 0;
va_list vl;
va_start(vl, amount);
for (i = 0; i < amount; i++)
{
val = va_arg(vl, int);
sum += val;
}
va_end(vl);