2 ; fixme rev16 pattern is not matching
4 ; RUN: llc < %s -mtriple=thumb-- -mcpu=arm1156t2-s -mattr=+thumb2 | grep "rev16\W*r[0-9]*,\W*r[0-9]*" | count 1
6 ; 0xff00ff00 = 4278255360
7 ; 0x00ff00ff = 16711935
8 define i32 @f1(i32 %a) {
11 %mask_l8 = and i32 %l8, 4278255360
12 %mask_r8 = and i32 %r8, 16711935
13 %tmp = or i32 %mask_l8, %mask_r8
17 ; 0xff000000 = 4278190080
18 ; 0x00ff0000 = 16711680
21 define i32 @f2(i32 %a) {
24 %masklo_l8 = and i32 %l8, 65280
25 %maskhi_l8 = and i32 %l8, 4278190080
26 %masklo_r8 = and i32 %r8, 255
27 %maskhi_r8 = and i32 %r8, 16711680
28 %tmp1 = or i32 %masklo_l8, %masklo_r8
29 %tmp2 = or i32 %maskhi_l8, %maskhi_r8
30 %tmp = or i32 %tmp1, %tmp2