summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
authorCameron McInally <cameron.mcinally@nyu.edu>2019-05-06 16:05:10 +0000
committerCameron McInally <cameron.mcinally@nyu.edu>2019-05-06 16:05:10 +0000
commitc3167696bc3758efc9c1e98c63ef653951567a2a (patch)
tree11bd9667e4111a622fb3783221fc035df3acaf77 /llvm/test/Transforms
parent3379fb599d50214be84ad1c03e76381b271844f7 (diff)
downloadbcm5719-llvm-c3167696bc3758efc9c1e98c63ef653951567a2a.tar.gz
bcm5719-llvm-c3167696bc3758efc9c1e98c63ef653951567a2a.zip
Add FNeg support to InstructionSimplify
Differential Revision: https://reviews.llvm.org/D61573 llvm-svn: 360053
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll b/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll
index acc24d9ba60..acd1936a641 100644
--- a/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll
+++ b/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll
@@ -1,6 +1,15 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instsimplify -S | FileCheck %s
+define float @fneg_fneg_var(float %a) {
+; CHECK-LABEL: @fneg_fneg_var(
+; CHECK-NEXT: ret float [[A:%.*]]
+;
+ %r = fneg float %a
+ %r1 = fneg float %r
+ ret float %r1
+}
+
define <2 x float> @fsub_negzero_vec_undef_elts(<2 x float> %x) {
; CHECK-LABEL: @fsub_negzero_vec_undef_elts(
; CHECK-NEXT: ret <2 x float> [[X:%.*]]
OpenPOWER on IntegriCloud