1 ; Test 32-bit XORs in which the second operand is constant.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
5 ; Check the lowest useful XILF value.
6 define i32 @f1(i32 %a) {
14 ; Check the high end of the signed range.
15 define i32 @f2(i32 %a) {
17 ; CHECK: xilf %r2, 2147483647
19 %xor = xor i32 %a, 2147483647
23 ; Check the low end of the signed range, which should be treated
24 ; as a positive value.
25 define i32 @f3(i32 %a) {
27 ; CHECK: xilf %r2, 2147483648
29 %xor = xor i32 %a, -2147483648
33 ; Check the high end of the XILF range.
34 define i32 @f4(i32 %a) {
36 ; CHECK: xilf %r2, 4294967295
38 %xor = xor i32 %a, 4294967295