blob: a8fef05b1ad8166f2c84d581f3b3018605f0cbdf [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc64
Bill Wendling3e98c302008-03-24 23:16:37 +00002
3define fastcc i8* @page_rec_get_next(i8* %rec) nounwind {
4entry:
5 %tmp2627 = ptrtoint i8* %rec to i64 ; <i64> [#uses=2]
6 %tmp28 = and i64 %tmp2627, -16384 ; <i64> [#uses=2]
7 %tmp2829 = inttoptr i64 %tmp28 to i8* ; <i8*> [#uses=1]
8 %tmp37 = getelementptr i8* %tmp2829, i64 42 ; <i8*> [#uses=1]
9 %tmp40 = load i8* %tmp37, align 1 ; <i8> [#uses=1]
10 %tmp4041 = zext i8 %tmp40 to i64 ; <i64> [#uses=1]
11 %tmp42 = shl i64 %tmp4041, 8 ; <i64> [#uses=1]
12 %tmp47 = add i64 %tmp42, 0 ; <i64> [#uses=1]
13 %tmp52 = and i64 %tmp47, 32768 ; <i64> [#uses=1]
14 %tmp72 = icmp eq i64 %tmp52, 0 ; <i1> [#uses=1]
15 br i1 %tmp72, label %bb91, label %bb
16bb: ; preds = %entry
17 ret i8* null
18bb91: ; preds = %entry
19 br i1 false, label %bb100, label %bb185
20bb100: ; preds = %bb91
21 %tmp106 = sub i64 %tmp2627, %tmp28 ; <i64> [#uses=0]
22 ret i8* null
23bb185: ; preds = %bb91
24 ret i8* null
25}