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