1 ; RUN: opt < %s -scalarrepl -disable-output
3 target datalayout = "E-p:32:32"
4 %struct.rtx_def = type { [2 x i8], i32, [1 x %union.rtunion_def] }
5 %union.rtunion_def = type { i32 }
7 define void @find_reloads() {
9 %c_addr.i = alloca i8 ; <i8*> [#uses=1]
10 switch i32 0, label %return [
11 i32 36, label %label.7
12 i32 34, label %label.7
13 i32 41, label %label.5
15 label.5: ; preds = %entry
17 label.7: ; preds = %entry, %entry
18 br i1 false, label %then.4, label %switchexit.0
19 then.4: ; preds = %label.7
20 %tmp.0.i = bitcast i8* %c_addr.i to i32* ; <i32*> [#uses=1]
21 store i32 44, i32* %tmp.0.i
23 switchexit.0: ; preds = %label.7
25 return: ; preds = %entry