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 1059 - intel-style asm printer for x86 doesn't support jump tables
Summary: intel-style asm printer for x86 doesn't support jump tables
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Backend: X86 (show other bugs)
Version: 1.9
Hardware: All All
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords: compile-fail
Depends on:
Blocks:
 
Reported: 2006-12-18 23:55 PST by Chris Lattner
Modified: 2010-02-22 12:48 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments
Quick'n'-dirty patch (1.38 KB, patch)
2006-12-19 03:16 PST, Anton Korobeynikov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Lattner 2006-12-18 23:55:43 PST
-x86-asm-syntax=intel yields:

$BB1_2451:	;bb740
	mov EAX, <unknown operand type>
	mov ECX, DWORD PTR [ESP + 1372]
	jmp DWORD PTR [EAX + 4*ECX]

AT&T yields:

LBB1_2451:	#bb740
	movl $LJTI1_3, %eax
	movl 1372(%esp), %ecx
	jmpl *(%eax,%ecx,4)
Comment 1 Anton Korobeynikov 2006-12-19 02:59:02 PST
Chris, could you please attach failed bytecode. All examples I've tried to
construct by myself lead to assertion (for intel syntax). Need to investigate
more, but it's somehow different task :)
Comment 2 Anton Korobeynikov 2006-12-19 03:16:30 PST
Created attachment 524 [details]
Quick'n'-dirty patch

I don't have bytecode to play with (see prev. comment), so this is just some
possible way to fix. Let me know thhe results.
Comment 3 Chris Lattner 2006-12-19 13:31:58 PST
The example in bug 1061 now demonstrates this issue.