1 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s
3 define i32 @f1(i32 %a) {
6 %tmp = xor i32 4294967295, %a
10 define i32 @f2(i32 %a) {
13 %tmp = xor i32 %a, 4294967295
17 define i32 @f5(i32 %a) {
19 ; CHECK: mvn.w r0, r0, lsl #5
21 %tmp1 = xor i32 %tmp, 4294967295
25 define i32 @f6(i32 %a) {
27 ; CHECK: mvn.w r0, r0, lsr #6
29 %tmp1 = xor i32 %tmp, 4294967295
33 define i32 @f7(i32 %a) {
35 ; CHECK: mvn.w r0, r0, asr #7
37 %tmp1 = xor i32 %tmp, 4294967295
41 define i32 @f8(i32 %a) {
43 ; CHECK: mvn.w r0, r0, ror #8
46 %tmp = or i32 %l8, %r8
47 %tmp1 = xor i32 %tmp, 4294967295