blob: 5fee326d530d967aa23fe00a031f03c91f22b40a [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86
Tanya Lattner33eefff2008-02-21 07:42:26 +00002 %struct.expr = type { %struct.rtx_def*, i32, %struct.expr*, %struct.occr*, %struct.occr*, %struct.rtx_def* }
3 %struct.hash_table = type { %struct.expr**, i32, i32, i32 }
4 %struct.occr = type { %struct.occr*, %struct.rtx_def*, i8, i8 }
5 %struct.rtx_def = type { i16, i8, i8, %struct.u }
6 %struct.u = type { [1 x i64] }
Evan Chengb8f97232006-08-17 00:00:46 +00007
Tanya Lattner33eefff2008-02-21 07:42:26 +00008define void @test() {
9 %tmp = load i32* null ; <i32> [#uses=1]
10 %tmp8 = call i32 @hash_rtx( ) ; <i32> [#uses=1]
11 %tmp11 = urem i32 %tmp8, %tmp ; <i32> [#uses=1]
12 br i1 false, label %cond_next, label %return
Evan Chengb8f97232006-08-17 00:00:46 +000013
Tanya Lattner33eefff2008-02-21 07:42:26 +000014cond_next: ; preds = %0
15 %gep.upgrd.1 = zext i32 %tmp11 to i64 ; <i64> [#uses=1]
16 %tmp17 = getelementptr %struct.expr** null, i64 %gep.upgrd.1 ; <%struct.expr**> [#uses=0]
Evan Chengb8f97232006-08-17 00:00:46 +000017 ret void
18
Tanya Lattner33eefff2008-02-21 07:42:26 +000019return: ; preds = %0
Evan Chengb8f97232006-08-17 00:00:46 +000020 ret void
21}
22
Tanya Lattner33eefff2008-02-21 07:42:26 +000023declare i32 @hash_rtx()