1 ; RUN: opt < %s -lowerswitch -S | FileCheck %s
3 ; The switch is lowered with a single icmp.
15 ; __builtin_unreachable();
20 define i32 @foo(i32 %a) {
21 %1 = alloca i32, align 4
22 %2 = alloca i32, align 4
23 store i32 %a, i32* %2, align 4
24 %3 = load i32, i32* %2, align 4
25 switch i32 %3, label %6 [
42 %8 = load i32, i32* %1