summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SystemZ/vec-neg-01.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/SystemZ/vec-neg-01.ll')
-rw-r--r--llvm/test/CodeGen/SystemZ/vec-neg-01.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/SystemZ/vec-neg-01.ll b/llvm/test/CodeGen/SystemZ/vec-neg-01.ll
index 357648ba4d3..491e24bb34f 100644
--- a/llvm/test/CodeGen/SystemZ/vec-neg-01.ll
+++ b/llvm/test/CodeGen/SystemZ/vec-neg-01.ll
@@ -37,3 +37,12 @@ define <2 x i64> @f4(<2 x i64> %dummy, <2 x i64> %val) {
%ret = sub <2 x i64> zeroinitializer, %val
ret <2 x i64> %ret
}
+
+; Test a v2f64 negation.
+define <2 x double> @f5(<2 x double> %dummy, <2 x double> %val) {
+; CHECK-LABEL: f5:
+; CHECK: vflcdb %v24, %v26
+; CHECK: br %r14
+ %ret = fsub <2 x double> <double -0.0, double -0.0>, %val
+ ret <2 x double> %ret
+}
OpenPOWER on IntegriCloud