https://bugs.llvm.org/show_bug.cgi?id=38734
Shawn Landden <sland...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Summary|wrong passing of arguments |wrong passing of arguments
|on arm64 with -O0 |on arm64 with optimization
| |disabled
Resolution|WORKSFORME |---
--- Comment #4 from Shawn Landden <sland...@gmail.com> ---
OK, this bug only occurs with -O0.
main:
.Lfunc_begin8:
.loc 5 6 0
.cfi_startproc
sub sp, sp, #32
stp x29, x30, [sp, #16]
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w1, #-1
sub x0, x29, #4
.Ltmp41:
.loc 5 7 16 prologue_end
bl function3
.Ltmp42:
.loc 5 6 20
ldp x29, x30, [sp, #16]
add sp, sp, #32
ret
.Ltmp43:
.Lfunc_end8:
.size main, .Lfunc_end8-main
.cfi_endproc
.p2align 2
.type function3,@function
function3:
With optimization enabled
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs