Displaying 5 results from an estimated 5 matches for "bb0_6".
Did you mean:
bb0_2
2013 Oct 03
1
[LLVMdev] Help with a Microblaze code generation problem.
...r3, r19, 52
beqid r5, ($BB0_4)
swi r4, r19, 56
lwi r3, r19, 40
swi r3, r19, 56
$BB0_4:
lwi r3, r19, 56
lwi r4, r19, 44
lwi r5, r19, 32
swi r3, r19, 60
bgtid r5, ($BB0_6)
swi r4, r19, 64
lwi r3, r19, 40
swi r3, r19, 64
$BB0_6:
lwi r3, r19, 64
lwi r4, r19, 52
lwi r5, r19, 60
swi r3, r19, 68
bneid r5, ($BB0_8)
swi r4, r19, 72
l...
2013 Feb 20
3
[LLVMdev] Is va_arg correct on Mips backend?
...arg_ptr
sw $1, 44($sp) // val
lw $4, 40($sp) // sum
addu $1, $4, $1
sw $1, 40($sp) // sum += val
lw $1, 48($sp)
addiu $1, $1, 1
sw $1, 48($sp)
$BB0_2: # =>This Inner Loop Header: Depth=1
lw $1, 52($sp)
lw $4, 48($sp)
slt $1, $4, $1
beq $1, $zero, $BB0_6
nop
# BB#3: # in Loop: Header=BB0_2 Depth=1
lw $4, 16($sp) // arg_ptr1
sltu $1, $2, $4
bne $1, $zero, $BB0_5
nop
# BB#4: # in Loop: Header=BB0_2 Depth=1
addiu $1, $4, 8 // arg_ptr2 + 8
lw $5, 28($sp) // arg_ptr2_offset...
2013 Feb 20
0
[LLVMdev] Is va_arg correct on Mips backend?
...$4, 40($sp) // sum
> addu $1, $4, $1
> sw $1, 40($sp) // sum += val
> lw $1, 48($sp)
> addiu $1, $1, 1
> sw $1, 48($sp)
> $BB0_2: # =>This Inner Loop Header: Depth=1
> lw $1, 52($sp)
> lw $4, 48($sp)
> slt $1, $4, $1
> beq $1, $zero, $BB0_6
> nop
> # BB#3: # in Loop: Header=BB0_2 Depth=1
> lw $4, 16($sp) // arg_ptr1
> sltu $1, $2, $4
> bne $1, $zero, $BB0_5
> nop
> # BB#4: # in Loop: Header=BB0_2 Depth=1
> addiu $1, $4, 8 // arg_ptr2 + 8
> l...
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);