1 # RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
5 define i32 @test_jumptable(i32 %in) {
7 switch i32 %in, label %def [
34 kind: label-difference32
37 blocks: [ '%bb.3.lbl1', '%bb.4.lbl2', '%bb.5.lbl3', '%bb.6.lbl4' ]
38 # CHECK: [[@LINE+1]]:18: redefinition of jump table entry '%jump-table.0'
40 blocks: [ '%bb.3.lbl1', '%bb.4.lbl2', '%bb.5.lbl3', '%bb.6.lbl4' ]
43 successors: %bb.2.def, %bb.1.entry
45 $eax = MOV32rr $edi, implicit-def $rax
46 CMP32ri8 $edi, 3, implicit-def $eflags
47 JCC_1 %bb.2.def, 7, implicit $eflags
50 successors: %bb.3.lbl1, %bb.4.lbl2, %bb.5.lbl3, %bb.6.lbl4
52 $rcx = LEA64r $rip, 1, _, %jump-table.0, _
53 $rax = MOVSX64rm32 $rcx, 4, $rax, 0, _
54 $rax = ADD64rr $rax, $rcx, implicit-def $eflags
58 $eax = MOV32r0 implicit-def $eflags