blob: 1cc35913637e19db71ef81b0ccf4a0a4706691d8 [file] [log] [blame]
David Goodwinaf0d08d2009-07-27 16:31:55 +00001; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {adds\\.w\\W*r\[0-9\],\\W*r\[0-9\],\\W*#\[0-9\]*} | grep {#171\\|#1179666\\|#872428544\\|#1448498774\\|#66846720} | count 5
David Goodwin2634e982009-06-26 18:10:30 +00002
3; 171 = 0x000000ab
4define i64 @f1(i64 %a) {
5 %tmp = add i64 %a, 171
6 ret i64 %tmp
7}
8
9; 1179666 = 0x00120012
10define i64 @f2(i64 %a) {
11 %tmp = add i64 %a, 1179666
12 ret i64 %tmp
13}
14
15; 872428544 = 0x34003400
16define i64 @f3(i64 %a) {
17 %tmp = add i64 %a, 872428544
18 ret i64 %tmp
19}
20
21; 1448498774 = 0x56565656
22define i64 @f4(i64 %a) {
23 %tmp = add i64 %a, 1448498774
24 ret i64 %tmp
25}
26
27; 66846720 = 0x03fc0000
28define i64 @f5(i64 %a) {
29 %tmp = add i64 %a, 66846720
30 ret i64 %tmp
31}