1 ; Test vector subtraction on z14.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
5 ; Test a v4f32 subtraction.
6 define <4 x float> @f6(<4 x float> %dummy, <4 x float> %val1,
9 ; CHECK: vfssb %v24, %v26, %v28
11 %ret = fsub <4 x float> %val1, %val2
15 ; Test an f32 subtraction that uses vector registers.
16 define float @f7(<4 x float> %val1, <4 x float> %val2) {
18 ; CHECK: wfssb %f0, %v24, %v26
20 %scalar1 = extractelement <4 x float> %val1, i32 0
21 %scalar2 = extractelement <4 x float> %val2, i32 0
22 %ret = fsub float %scalar1, %scalar2
26 ; Test a v2f32 subtraction, which gets promoted to v4f32.
27 define <2 x float> @f14(<2 x float> %val1, <2 x float> %val2) {
28 ; No particular output expected, but must compile.
29 %ret = fsub <2 x float> %val1, %val2