1 ; RUN: llvm-dis -opaque-pointers=0 < %s.bc| FileCheck %s
2 ; RUN: llvm-dis -opaque-pointers=1 < %s.bc| FileCheck %s
3 ; RUN: verify-uselistorder < %s.bc
5 ; case-ranges.ll.bc was generated by passing this file to llvm-as from the 3.3
6 ; release of LLVM. This tests that the bitcode for switches from that release
9 define i32 @foo(i32 %x) nounwind ssp uwtable {
10 ; CHECK: define i32 @foo
11 %1 = alloca i32, align 4
12 %2 = alloca i32, align 4
13 store i32 %x, i32* %2, align 4
14 %3 = load i32, i32* %2, align 4
15 switch i32 %3, label %9 [
16 ; CHECK: switch i32 %3, label %9
18 ; CHECK-NEXT: i32 -3, label %4
20 ; CHECK-NEXT: i32 -2, label %4
22 ; CHECK-NEXT: i32 -1, label %4
24 ; CHECK-NEXT: i32 0, label %4
26 ; CHECK-NEXT: i32 1, label %4
28 ; CHECK-NEXT: i32 2, label %4
30 ; CHECK-NEXT: i32 4, label %5
32 ; CHECK-NEXT: i32 5, label %6
34 ; CHECK-NEXT: i32 6, label %7
36 ; CHECK-NEXT: i32 7, label %8
67 %12 = load i32, i32* %1