44 lines · plain
1; RUN: llc < %s2; No FileCheck - testing for crash.3 4target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"5target triple = "thumbv5e-none-linux-gnueabi"6 7%struct.blam = type { [4 x %struct.eggs], [6 x [15 x i16]], [6 x i32], i32, i32, i32, i32, i32, i32, %struct.eggs, [4 x %struct.eggs], [4 x %struct.eggs], [4 x i32], i32, i32, i32, [4 x %struct.eggs], [4 x %struct.eggs], i32, %struct.eggs, i32 }8%struct.eggs = type { i32, i32 }9 10define void @spam(ptr %arg, i32 %arg1) {11bb:12 %tmp = getelementptr inbounds %struct.blam, ptr %arg, i32 undef, i32 2, i32 %arg113 switch i32 %arg1, label %bb8 [14 i32 0, label %bb215 i32 1, label %bb316 i32 2, label %bb417 i32 3, label %bb518 i32 4, label %bb619 i32 5, label %bb720 ]21 22bb2: ; preds = %bb23 unreachable24 25bb3: ; preds = %bb26 unreachable27 28bb4: ; preds = %bb29 unreachable30 31bb5: ; preds = %bb32 unreachable33 34bb6: ; preds = %bb35 unreachable36 37bb7: ; preds = %bb38 unreachable39 40bb8: ; preds = %bb41 store i32 1, ptr %tmp, align 442 unreachable43}44