1 ; RUN: opt < %s -passes=lower-switch -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, ptr %2, align 4
24 %3 = load i32, ptr %2, align 4
25 switch i32 %3, label %6 [