[llvm-bugs] [Bug 35630] New: Illegal ARM THUMB udiv instruction generated from llc with -filetype=asm, but not -filetype=obj
llvm-bugs at lists.llvm.org
Mon Dec 11 12:30:13 PST 2017
Bug ID: 35630
Summary: Illegal ARM THUMB udiv instruction generated from llc
with -filetype=asm, but not -filetype=obj
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: jackcarter at arxan.com
CC: llvm-bugs at lists.llvm.org
Created attachment 19537
gzipped .ll bitcode file that demonstrates the problem
The test attached was produced by llvm-extract. The size actually is deceiving
because the actual code in the bitcode takes up less than 120 lines.
llvm-extract pulls in a lot if not all of the original declarations and types
This produces the illegal instruction:
llc -filetype=asm -relocation-model=pic -no-stack-coloring
./hkey_expansion_core.bc -o hkey_expansion_core.s
grep udiv hkey_expansion_core.s
Direct object output does not:
llc -filetype=obj -relocation-model=pic -no-stack-coloring
./hkey_expansion_core.bc -o hkey_expansion_core.o
llvm-objdump -arch-name=arm hkey_expansion_core.o > hkey_expansion_core.dis
If I need to reduce the problem further using bugpoint I would be glad for any
suggestions on how to do that since it seems that I would need a .s file with
the desired output and for now I am not sure what that would be other than not
“udiv”. Possibly setting up registers and calling one of the udiv intrinsics.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs