2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -scalarrepl -disable-output
|
2005-12-15 01:23:20 +08:00
|
|
|
|
2008-03-18 12:14:37 +08:00
|
|
|
target datalayout = "E-p:32:32"
|
|
|
|
%struct.rtx_def = type { [2 x i8], i32, [1 x %union.rtunion_def] }
|
|
|
|
%union.rtunion_def = type { i32 }
|
2005-12-15 01:23:20 +08:00
|
|
|
|
2008-03-18 12:14:37 +08:00
|
|
|
define void @find_reloads() {
|
2005-12-15 01:23:20 +08:00
|
|
|
entry:
|
2008-03-18 12:14:37 +08:00
|
|
|
%c_addr.i = alloca i8 ; <i8*> [#uses=1]
|
|
|
|
switch i32 0, label %return [
|
|
|
|
i32 36, label %label.7
|
|
|
|
i32 34, label %label.7
|
|
|
|
i32 41, label %label.5
|
2005-12-15 01:23:20 +08:00
|
|
|
]
|
|
|
|
label.5: ; preds = %entry
|
|
|
|
ret void
|
|
|
|
label.7: ; preds = %entry, %entry
|
2008-03-18 12:14:37 +08:00
|
|
|
br i1 false, label %then.4, label %switchexit.0
|
2005-12-15 01:23:20 +08:00
|
|
|
then.4: ; preds = %label.7
|
2008-03-18 12:14:37 +08:00
|
|
|
%tmp.0.i = bitcast i8* %c_addr.i to i32* ; <i32*> [#uses=1]
|
|
|
|
store i32 44, i32* %tmp.0.i
|
2005-12-15 01:23:20 +08:00
|
|
|
ret void
|
|
|
|
switchexit.0: ; preds = %label.7
|
|
|
|
ret void
|
|
|
|
return: ; preds = %entry
|
|
|
|
ret void
|
|
|
|
}
|
2008-03-18 12:14:37 +08:00
|
|
|
|