3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
6 define <4 x i32> @f1(<4 x i32> %val1, <4 x i32> %val2) {
8 ; CHECK: vmnf %v24, {{%v24, %v26|%v26, %v24}}
10 %cmp = icmp slt <4 x i32> %val2, %val1
11 %ret = select <4 x i1> %cmp, <4 x i32> %val2, <4 x i32> %val1
16 define <4 x i32> @f2(<4 x i32> %val1, <4 x i32> %val2) {
18 ; CHECK: vmnf %v24, {{%v24, %v26|%v26, %v24}}
20 %cmp = icmp sle <4 x i32> %val2, %val1
21 %ret = select <4 x i1> %cmp, <4 x i32> %val2, <4 x i32> %val1
26 define <4 x i32> @f3(<4 x i32> %val1, <4 x i32> %val2) {
28 ; CHECK: vmnf %v24, {{%v24, %v26|%v26, %v24}}
30 %cmp = icmp sgt <4 x i32> %val2, %val1
31 %ret = select <4 x i1> %cmp, <4 x i32> %val1, <4 x i32> %val2
36 define <4 x i32> @f4(<4 x i32> %val1, <4 x i32> %val2) {
38 ; CHECK: vmnf %v24, {{%v24, %v26|%v26, %v24}}
40 %cmp = icmp sge <4 x i32> %val2, %val1
41 %ret = select <4 x i1> %cmp, <4 x i32> %val1, <4 x i32> %val2
46 define <4 x i32> @f5(<4 x i32> %val1, <4 x i32> %val2) {
48 ; CHECK: vmnlf %v24, {{%v24, %v26|%v26, %v24}}
50 %cmp = icmp ult <4 x i32> %val2, %val1
51 %ret = select <4 x i1> %cmp, <4 x i32> %val2, <4 x i32> %val1
56 define <4 x i32> @f6(<4 x i32> %val1, <4 x i32> %val2) {
58 ; CHECK: vmnlf %v24, {{%v24, %v26|%v26, %v24}}
60 %cmp = icmp ule <4 x i32> %val2, %val1
61 %ret = select <4 x i1> %cmp, <4 x i32> %val2, <4 x i32> %val1
66 define <4 x i32> @f7(<4 x i32> %val1, <4 x i32> %val2) {
68 ; CHECK: vmnlf %v24, {{%v24, %v26|%v26, %v24}}
70 %cmp = icmp ugt <4 x i32> %val2, %val1
71 %ret = select <4 x i1> %cmp, <4 x i32> %val1, <4 x i32> %val2
76 define <4 x i32> @f8(<4 x i32> %val1, <4 x i32> %val2) {
78 ; CHECK: vmnlf %v24, {{%v24, %v26|%v26, %v24}}
80 %cmp = icmp uge <4 x i32> %val2, %val1
81 %ret = select <4 x i1> %cmp, <4 x i32> %val1, <4 x i32> %val2