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: vfmaxdb %v24, %v24, %v0, 1
50 %cmp = fcmp ugt <2 x double> %val, zeroinitializer
51 %ret = select <2 x i1> %cmp, <2 x double> %val, <2 x double> zeroinitializer
55 define <2 x double> @f6(<2 x double> %val) {
58 ; CHECK-NEXT: vfmindb %v24, %v24, %v0, 1
60 %cmp = fcmp ult <2 x double> %val, zeroinitializer
61 %ret = select <2 x i1> %cmp, <2 x double> %val, <2 x double> zeroinitializer
65 define <4 x float> @f7(<4 x float> %val) {
68 ; CHECK-NEXT: vfmaxsb %v24, %v24, %v0, 1
70 %cmp = fcmp ugt <4 x float> %val, zeroinitializer
71 %ret = select <4 x i1> %cmp, <4 x float> %val, <4 x float> zeroinitializer
75 define <4 x float> @f8(<4 x float> %val) {
78 ; CHECK-NEXT: vfminsb %v24, %v24, %v0, 1
80 %cmp = fcmp ult <4 x float> %val, zeroinitializer
81 %ret = select <4 x i1> %cmp, <4 x float> %val, <4 x float> zeroinitializer