1 ; RUN: llvm-dis < %s.bc| FileCheck %s
2 ; RUN: verify-uselistorder < %s.bc
4 ; case-ranges.ll.bc was generated by passing this file to llvm-as from the 3.3
5 ; release of LLVM. This tests that the bitcode for switches from that release
8 define i32 @foo(i32 %x) nounwind ssp uwtable {
9 ; CHECK: define i32 @foo
10 %1 = alloca i32, align 4
11 %2 = alloca i32, align 4
12 store i32 %x, i32* %2, align 4
13 %3 = load i32, i32* %2, align 4
14 switch i32 %3, label %9 [
15 ; CHECK: switch i32 %3, label %9
17 ; CHECK-NEXT: i32 -3, label %4
19 ; CHECK-NEXT: i32 -2, label %4
21 ; CHECK-NEXT: i32 -1, label %4
23 ; CHECK-NEXT: i32 0, label %4
25 ; CHECK-NEXT: i32 1, label %4
27 ; CHECK-NEXT: i32 2, label %4
29 ; CHECK-NEXT: i32 4, label %5
31 ; CHECK-NEXT: i32 5, label %6
33 ; CHECK-NEXT: i32 6, label %7
35 ; CHECK-NEXT: i32 7, label %8
66 %12 = load i32, i32* %1