1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; Test 128-bit arithmetic in vector registers on z13
4 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
6 declare i128 @llvm.ctpop.i128(i128)
8 define i128 @f1(i128 %a) {
11 ; CHECK-NEXT: vl %v0, 0(%r3), 3
12 ; CHECK-NEXT: vpopct %v0, %v0, 0
13 ; CHECK-NEXT: vgbm %v1, 0
14 ; CHECK-NEXT: vsumb %v0, %v0, %v1
15 ; CHECK-NEXT: vsumgf %v0, %v0, %v1
16 ; CHECK-NEXT: vsumqg %v0, %v0, %v1
17 ; CHECK-NEXT: vst %v0, 0(%r2), 3
19 %res = tail call i128 @llvm.ctpop.i128(i128 %a)