blob: bb43acb6d1016259d80dc484c2be6aceb7d04845 [file] [log] [blame]
David Goodwin2634e982009-06-26 18:10:30 +00001; RUN: llvm-as < %s | llc | grep {adds\\W*r\[0-9\],\\W*r\[0-9\],\\W*#\[0-9\]*} | grep {#171\\|#1179666\\|#872428544\\|#1448498774\\|#66846720} | Count 5
2
3target triple = "thumbv7-apple-darwin"
4
5; 171 = 0x000000ab
6define i64 @f1(i64 %a) {
7 %tmp = add i64 %a, 171
8 ret i64 %tmp
9}
10
11; 1179666 = 0x00120012
12define i64 @f2(i64 %a) {
13 %tmp = add i64 %a, 1179666
14 ret i64 %tmp
15}
16
17; 872428544 = 0x34003400
18define i64 @f3(i64 %a) {
19 %tmp = add i64 %a, 872428544
20 ret i64 %tmp
21}
22
23; 1448498774 = 0x56565656
24define i64 @f4(i64 %a) {
25 %tmp = add i64 %a, 1448498774
26 ret i64 %tmp
27}
28
29; 66846720 = 0x03fc0000
30define i64 @f5(i64 %a) {
31 %tmp = add i64 %a, 66846720
32 ret i64 %tmp
33}