1 ; Test vector intrinsics added with z16.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z16 | FileCheck %s
5 declare <4 x float> @llvm.s390.vclfnhs(<8 x i16>, i32)
6 declare <4 x float> @llvm.s390.vclfnls(<8 x i16>, i32)
7 declare <8 x i16> @llvm.s390.vcrnfs(<4 x float>, <4 x float>, i32)
8 declare <8 x i16> @llvm.s390.vcfn(<8 x i16>, i32)
9 declare <8 x i16> @llvm.s390.vcnf(<8 x i16>, i32)
12 define <4 x float> @test_vclfnhs(<8 x i16> %a) {
13 ; CHECK-LABEL: test_vclfnhs:
14 ; CHECK: vclfnh %v24, %v24, 2, 0
16 %res = call <4 x float> @llvm.s390.vclfnhs(<8 x i16> %a, i32 0)
21 define <4 x float> @test_vclfnls(<8 x i16> %a) {
22 ; CHECK-LABEL: test_vclfnls:
23 ; CHECK: vclfnl %v24, %v24, 2, 0
25 %res = call <4 x float> @llvm.s390.vclfnls(<8 x i16> %a, i32 0)
30 define <8 x i16> @test_vcrnfs(<4 x float> %a, <4 x float> %b) {
31 ; CHECK-LABEL: test_vcrnfs:
32 ; CHECK: vcrnf %v24, %v24, %v26, 0, 2
34 %res = call <8 x i16> @llvm.s390.vcrnfs(<4 x float> %a, <4 x float> %b, i32 0)
39 define <8 x i16> @test_vcfn(<8 x i16> %a) {
40 ; CHECK-LABEL: test_vcfn:
41 ; CHECK: vcfn %v24, %v24, 1, 0
43 %res = call <8 x i16> @llvm.s390.vcfn(<8 x i16> %a, i32 0)
48 define <8 x i16> @test_vcnf(<8 x i16> %a) {
49 ; CHECK-LABEL: test_vcnf:
50 ; CHECK: vcnf %v24, %v24, 0, 1
52 %res = call <8 x i16> @llvm.s390.vcnf(<8 x i16> %a, i32 0)