1 ; RUN: opt < %s -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S -mtriple=sparc-unknown-unknown | FileCheck %s
3 ; Check that switches are not turned into lookup tables, as this is not
4 ; considered profitable on the target.
6 define i32 @f(i32 %c) nounwind uwtable readnone {
8 switch i32 %c, label %sw.default [
18 sw.bb1: br label %return
19 sw.bb2: br label %return
20 sw.bb3: br label %return
21 sw.bb4: br label %return
22 sw.bb5: br label %return
23 sw.bb6: br label %return
24 sw.default: br label %return
26 %retval.0 = phi i32 [ 15, %sw.default ], [ 1, %sw.bb6 ], [ 62, %sw.bb5 ], [ 27, %sw.bb4 ], [ -1, %sw.bb3 ], [ 0, %sw.bb2 ], [ 123, %sw.bb1 ], [ 55, %entry ]
30 ; CHECK-NOT: getelementptr
31 ; CHECK: switch i32 %c