$ ./llc -f test-j.bc -x86-asm-syntax=intel llc: /home/asl/proj/llvm/src/include/llvm/CodeGen/MachineInstr.h:138: int64_t llvm::MachineOperand::getImmedValue() const: Assertion `isImm() && "Wrong MachineOperand accessor"' failed. ./llc((anonymous namespace)::PrintStackTrace()+0x1f)[0x85a77cf] /lib/libc.so.6(abort+0xeb)[0xb7cf6133] /lib/libc.so.6(__assert_fail+0xeb)[0xb7cee4f3] ./llc(llvm::X86IntelAsmPrinter::printMemReference(llvm::MachineInstr const*, unsigned int, char const*)+0x49c)[0x827468c] Don't know MF machinery yet to investigate/fix :(
Created attachment 525 [details] Failed bitecode
Fixed. Testcase here: CodeGen/X86/2006-12-19-IntelSyntax.ll Patch here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061218/041591.html -Chris