[LLVMdev] Help with a Microblaze code generation problem.
Richard Pennington
rich at pennware.com
Thu Oct 3 04:06:22 PDT 2013
On 10/03/2013 05:49 AM, Richard Pennington wrote:
> Sorry if this is a duplicate: I tried to send it last night and it
> didn't go through. I'm trimming some text to see if it helps.
Cut and paste error for the unsigned long long Microblaze version. It
should be:
.globl main
.align 2
.type main, at function
.ent main
main:
.frame r19,76,r15
.mask 0x80000
addik r1, r1, -76
swi r19, r1, 4
add r19, r1, r0
swi r0, r19, 8
addik r3, r0, 100
swi r3, r19, 20
swi r0, r19, 16
addik r3, r0, -2147483648
swi r3, r19, 24
swi r0, r19, 28
addik r4, r0, -1
lwi r5, r19, 16
cmp r4, r4, r5
cmp r3, r3, r5
addik r5, r0, 0
addik r6, r0, 1
lwi r7, r19, 20
addk r8, r6, r0
swi r4, r19, 32
swi r3, r19, 36
swi r5, r19, 40
swi r6, r19, 44
beqid r7, ($BB0_2)
swi r8, r19, 48
lwi r3, r19, 40
swi r3, r19, 48
$BB0_2:
lwi r3, r19, 48
lwi r4, r19, 44
lwi r5, r19, 36
swi 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
lwi r3, r19, 68
swi r3, r19, 72
$BB0_8:
lwi r3, r19, 72
add r1, r19, r0
lwi r19, r1, 4
rtsd r15, 8
addik r1, r1, 76
.end main
$tmp0:
.size main, ($tmp0)-main
-Rich
More information about the llvm-dev
mailing list