LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 1061 - X86 IntelAsmPrinter can't print jumptables in memrefs
Summary: X86 IntelAsmPrinter can't print jumptables in memrefs
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Backend: X86 (show other bugs)
Version: 1.9
Hardware: PC Linux
: P normal
Assignee: Chris Lattner
URL:
Keywords: compile-fail
Depends on:
Blocks:
 
Reported: 2006-12-19 03:20 PST by Anton Korobeynikov
Modified: 2010-02-22 12:47 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
Failed bitecode (393 bytes, application/octet-stream)
2006-12-19 03:20 PST, Anton Korobeynikov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Korobeynikov 2006-12-19 03:20:08 PST
$ ./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 :(
Comment 1 Anton Korobeynikov 2006-12-19 03:20:34 PST
Created attachment 525 [details]
Failed bitecode
Comment 2 Chris Lattner 2006-12-19 13:30:55 PST
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