| ; Test 64-bit XORs in which the second operand is constant. |
| ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s |
| ; Check the lowest useful XILF value. |
| ; Check the high end of the XILF range. |
| ; CHECK: xilf %r2, 4294967295 |
| %xor = xor i64 %a, 4294967295 |
| ; Check the lowest useful XIHF value, which is one up from the above. |
| %xor = xor i64 %a, 4294967296 |
| ; Check the next value up again, which needs a combination of XIHF and XILF. |
| ; CHECK: xilf %r2, 4294967295 |
| %xor = xor i64 %a, 8589934591 |
| ; Check the high end of the XIHF range. |
| ; CHECK: xihf %r2, 4294967295 |
| %xor = xor i64 %a, -4294967296 |
| ; Check the next value up, which again must use XIHF and XILF. |
| ; CHECK: xihf %r2, 4294967295 |
| %xor = xor i64 %a, -4294967295 |
| ; Check full bitwise negation |