[llvm-bugs] [Bug 38734] wrong passing of arguments on arm64 with optimization disabled
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 30 12:41:00 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38734
Shawn Landden <slandden at 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 <slandden at 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, at function
function3:
With optimization enabled
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180830/2138878d/attachment.html>
More information about the llvm-bugs
mailing list