1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; Test 128-bit XOR in vector registers on z13
4 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
7 define i128 @f1(i128 %a, i128 %b) {
10 ; CHECK-NEXT: vl %v0, 0(%r4), 3
11 ; CHECK-NEXT: vl %v1, 0(%r3), 3
12 ; CHECK-NEXT: vx %v0, %v1, %v0
13 ; CHECK-NEXT: vst %v0, 0(%r2), 3
15 %res = xor i128 %a, %b
19 ; Verify that xor with a large constant does not crash.
20 define i128 @f2(i128 %x) {
23 ; CHECK-NEXT: larl %r1, .LCPI1_0
24 ; CHECK-NEXT: vl %v0, 0(%r3), 3
25 ; CHECK-NEXT: vl %v1, 0(%r1), 3
26 ; CHECK-NEXT: vx %v0, %v0, %v1
27 ; CHECK-NEXT: vst %v0, 0(%r2), 3
29 %res = xor i128 %x, 17440380254424117642