1 ; RUN: llc < %s -mtriple=x86_64-darwin -mcpu=corei7 | grep movabsq | count 3
3 define i64 @constant_hoisting(i64 %o0, i64 %o1, i64 %o2, i64 %o3, i64 %o4, i64 %o5) {
5 %l0 = and i64 %o0, -281474976710654
6 %c0 = icmp ne i64 %l0, 0
7 br i1 %c0, label %fail, label %bb1
10 %l1 = and i64 %o1, -281474976710654
11 %c1 = icmp ne i64 %l1, 0
12 br i1 %c1, label %fail, label %bb2
15 %l2 = and i64 %o2, -281474976710654
16 %c2 = icmp ne i64 %l2, 0
17 br i1 %c2, label %fail, label %bb3
20 %l3 = and i64 %o3, -281474976710654
21 %c3 = icmp ne i64 %l3, 0
22 br i1 %c3, label %fail, label %bb4
25 %l4 = and i64 %o4, -281474976710653
26 %c4 = icmp ne i64 %l4, 0
27 br i1 %c4, label %fail, label %bb5
30 %l5 = and i64 %o5, -281474976710652
31 %c5 = icmp ne i64 %l5, 0
32 br i1 %c5, label %fail, label %bb6
41 define void @constant_expressions() {
43 %0 = load i64, i64* inttoptr (i64 add (i64 51250129900, i64 0) to i64*)
44 %1 = load i64, i64* inttoptr (i64 add (i64 51250129900, i64 8) to i64*)
45 %2 = load i64, i64* inttoptr (i64 add (i64 51250129900, i64 16) to i64*)
46 %3 = load i64, i64* inttoptr (i64 add (i64 51250129900, i64 24) to i64*)
50 store i64 %6, i64* inttoptr (i64 add (i64 51250129900, i64 0) to i64*)
55 define void @constant_expressions2() {
57 %0 = load i64, i64* inttoptr (i64 51250129900 to i64*)
58 %1 = load i64, i64* inttoptr (i64 51250129908 to i64*)
59 %2 = load i64, i64* inttoptr (i64 51250129916 to i64*)
60 %3 = load i64, i64* inttoptr (i64 51250129924 to i64*)
64 store i64 %6, i64* inttoptr (i64 51250129900 to i64*)