https://bugs.llvm.org/show_bug.cgi?id=36011
Bug ID: 36011
Summary: Incorrect codegen for x32 ?
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: unassignedb...@nondot.org
Reporter: cs12b1...@iith.ac.in
CC: llvm-bugs@lists.llvm.org
Created attachment 19708
--> https://bugs.llvm.org/attachment.cgi?id=19708&action=edit
test case
Even though RBX is a callee-save register, it is not being saved before use in
the "base()" function in the attached test case. I have checked with LLVM 3.8
too and the same behavior exists even then. It is reproducible on trunk Jan
18/2018.
Steps to reproduce bug:
llc -mtriple=x86_64-pc-linux-gnux32 -stackrealign -stack-alignment=32 final.ll
clang final.s
./a.out
echo $?
Expected return value: 30
Actual return value: garbage.
The test case is an extended version of x86-64-baseptr.ll
--
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