llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.15k stars 12.03k forks source link

llc emits AT&T-mnemonic when using -O0 --x86-asm-syntax=intel #28158

Closed llvmbot closed 6 years ago

llvmbot commented 8 years ago
Bugzilla Link 27784
Resolution FIXED
Resolved on Jan 25, 2018 14:32
Version 3.9
OS Linux
Blocks llvm/llvm-project#11360
Attachments FreeBASIC code triggering the bug, along with LLVM-IR and assembly files.
Reporter LLVM Bugzilla Contributor
CC @topperc,@RKSimon

Extended Description

When using -O0 in combination with --x86-asm-syntax=intel, llc produces assembly which contains the "movabs"-mnemonic which makes the GNU assembler fail. Replacing the "movabs" with a normal "mov" seems to resolve the issue. Also, this doesn't seem to happen when using optimization levels other than -O0.

The LLVM-IR-code which triggered this behavior was generated by the FreeBASIC-compiler, sources are attached.

topperc commented 6 years ago

I believe this was fixed in r314140. We now print "movabs»·rdi, offset .LLt_0004" The 'offset' makes the GNU assembler happy.