1 ; Test 64-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 i64 @f1(i64 %a) {
14 ; Check the high end of the XILF range.
15 define i64 @f2(i64 %a) {
17 ; CHECK: xilf %r2, 4294967295
19 %xor = xor i64 %a, 4294967295
23 ; Check the lowest useful XIHF value, which is one up from the above.
24 define i64 @f3(i64 %a) {
28 %xor = xor i64 %a, 4294967296
32 ; Check the next value up again, which needs a combination of XIHF and XILF.
33 define i64 @f4(i64 %a) {
36 ; CHECK: xilf %r2, 4294967295
38 %xor = xor i64 %a, 8589934591
42 ; Check the high end of the XIHF range.
43 define i64 @f5(i64 %a) {
45 ; CHECK: xihf %r2, 4294967295
47 %xor = xor i64 %a, -4294967296
51 ; Check the next value up, which again must use XIHF and XILF.
52 define i64 @f6(i64 %a) {
54 ; CHECK: xihf %r2, 4294967295
57 %xor = xor i64 %a, -4294967295
61 ; Check full bitwise negation
62 define i64 @f7(i64 %a) {
64 ; CHECK: lcgr %r2, %r2