1 ; Test vector negation.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
5 ; Test a v16i8 negation.
6 define <16 x i8> @f1(<16 x i8> %dummy, <16 x i8> %val) {
8 ; CHECK: vlcb %v24, %v26
10 %ret = sub <16 x i8> zeroinitializer, %val
14 ; Test a v8i16 negation.
15 define <8 x i16> @f2(<8 x i16> %dummy, <8 x i16> %val) {
17 ; CHECK: vlch %v24, %v26
19 %ret = sub <8 x i16> zeroinitializer, %val
23 ; Test a v4i32 negation.
24 define <4 x i32> @f3(<4 x i32> %dummy, <4 x i32> %val) {
26 ; CHECK: vlcf %v24, %v26
28 %ret = sub <4 x i32> zeroinitializer, %val
32 ; Test a v2i64 negation.
33 define <2 x i64> @f4(<2 x i64> %dummy, <2 x i64> %val) {
35 ; CHECK: vlcg %v24, %v26
37 %ret = sub <2 x i64> zeroinitializer, %val
41 ; Test a v2f64 negation.
42 define <2 x double> @f5(<2 x double> %dummy, <2 x double> %val) {
44 ; CHECK: vflcdb %v24, %v26
46 %ret = fsub <2 x double> <double -0.0, double -0.0>, %val
50 ; Test an f64 negation that uses vector registers.
51 define double @f6(<2 x double> %val) {
53 ; CHECK: wflcdb %f0, %v24
55 %scalar = extractelement <2 x double> %val, i32 0
56 %ret = fsub double -0.0, %scalar