1 ; RUN: opt -S -passes='lower-switch,structurizecfg' %s -o - | FileCheck %s
3 ; The structurizecfg pass cannot handle switch instructions, so we need to
4 ; make sure the lower switch pass is always run before structurizecfg.
7 define void @switch(ptr addrspace(1) %out, i32 %cond) nounwind {
10 switch i32 %cond, label %done [ i32 0, label %zero]
14 ; CHECK: store i32 7, ptr addrspace(1) %out
15 store i32 7, ptr addrspace(1) %out
16 ; CHECK: br label %done