1 ; Test vector maximum/minimum with a zero splat on z14.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
5 define <2 x double> @f1(<2 x double> %val) {
8 ; CHECK-NEXT: vfmaxdb %v24, %v24, %v0, 4
10 %cmp = fcmp ogt <2 x double> %val, zeroinitializer
11 %ret = select <2 x i1> %cmp, <2 x double> %val, <2 x double> zeroinitializer
15 define <2 x double> @f2(<2 x double> %val) {
18 ; CHECK-NEXT: vfmindb %v24, %v24, %v0, 4
20 %cmp = fcmp olt <2 x double> %val, zeroinitializer
21 %ret = select <2 x i1> %cmp, <2 x double> %val, <2 x double> zeroinitializer
25 define <4 x float> @f3(<4 x float> %val) {
28 ; CHECK-NEXT: vfmaxsb %v24, %v24, %v0, 4
30 %cmp = fcmp ogt <4 x float> %val, zeroinitializer
31 %ret = select <4 x i1> %cmp, <4 x float> %val, <4 x float> zeroinitializer
35 define <4 x float> @f4(<4 x float> %val) {
38 ; CHECK-NEXT: vfminsb %v24, %v24, %v0, 4
40 %cmp = fcmp olt <4 x float> %val, zeroinitializer
41 %ret = select <4 x i1> %cmp, <4 x float> %val, <4 x float> zeroinitializer
45 define <2 x double> @f5(<2 x double> %val) {
48 ; CHECK-NEXT: vfchedb %v1, %v0, %v24
49 ; CHECK-NEXT: vsel %v24, %v0, %v24, %v1
51 %cmp = fcmp ugt <2 x double> %val, zeroinitializer
52 %ret = select <2 x i1> %cmp, <2 x double> %val, <2 x double> zeroinitializer
56 define <2 x double> @f6(<2 x double> %val) {
59 ; CHECK-NEXT: vfchedb %v1, %v24, %v0
60 ; CHECK-NEXT: vsel %v24, %v0, %v24, %v1
62 %cmp = fcmp ult <2 x double> %val, zeroinitializer
63 %ret = select <2 x i1> %cmp, <2 x double> %val, <2 x double> zeroinitializer
67 define <4 x float> @f7(<4 x float> %val) {
70 ; CHECK-NEXT: vfchesb %v1, %v0, %v24
71 ; CHECK-NEXT: vsel %v24, %v0, %v24, %v1
73 %cmp = fcmp ugt <4 x float> %val, zeroinitializer
74 %ret = select <4 x i1> %cmp, <4 x float> %val, <4 x float> zeroinitializer
78 define <4 x float> @f8(<4 x float> %val) {
81 ; CHECK-NEXT: vfchesb %v1, %v24, %v0
82 ; CHECK-NEXT: vsel %v24, %v0, %v24, %v1
84 %cmp = fcmp ult <4 x float> %val, zeroinitializer
85 %ret = select <4 x i1> %cmp, <4 x float> %val, <4 x float> zeroinitializer