Open Quuxplusone opened 12 years ago
Attached test.ll
(382 bytes, application/octet-stream): Test bitcode
"mov %gs:($56), %rsp" is not valid syntax. 'as' fails with:
$ as asm.s
asm.s:9:32-bit absolute addressing is not supported for x86-64
asm.s:9:cannot do signed 4 byte relocation
The problem here is that the x86 integrated assembler is just quietly
discarding the instruction rather than issuing a diagnostic.
My assembler (GNU assembler 2.22) just links to '$56'.
test.ll
(382 bytes, application/octet-stream)Created attachment 9052 Test bitcode
When compiling the attached bitcode with
llc -filetype=obj test.ll
, the inline assembly disappears. It shows up withllc -filetype=asm test.ll
and compiles using GNU as.