summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/fpcast.ll
diff options
context:
space:
mode:
authorCameron McInally <cameron.mcinally@nyu.edu>2018-10-25 18:09:33 +0000
committerCameron McInally <cameron.mcinally@nyu.edu>2018-10-25 18:09:33 +0000
commit384a74b0e63d847650e10ac7886fdadd44fc431c (patch)
tree5b9f21624640b03d7a423ebeacb1b3135c38128b /llvm/test/Transforms/InstCombine/fpcast.ll
parent9db06423d1c2744da799a2e118667bf1723843a6 (diff)
downloadbcm5719-llvm-384a74b0e63d847650e10ac7886fdadd44fc431c.tar.gz
bcm5719-llvm-384a74b0e63d847650e10ac7886fdadd44fc431c.zip
[FPEnv] Last BinaryOperator::isFNeg(...) to m_FNeg(...) changes
Replacing BinaryOperator::isFNeg(...) to avoid regressions when we separate FNeg from the FSub IR instruction. Differential Revision: https://reviews.llvm.org/D53650 llvm-svn: 345295
Diffstat (limited to 'llvm/test/Transforms/InstCombine/fpcast.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/fpcast.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/InstCombine/fpcast.ll b/llvm/test/Transforms/InstCombine/fpcast.ll
index 7ba2ca04bcd..bfc1de4ff6d 100644
--- a/llvm/test/Transforms/InstCombine/fpcast.ll
+++ b/llvm/test/Transforms/InstCombine/fpcast.ll
@@ -42,8 +42,8 @@ define half @fneg_fptrunc(float %a) {
define <2 x half> @fneg_fptrunc_vec_undef(<2 x float> %a) {
; CHECK-LABEL: @fneg_fptrunc_vec_undef(
-; CHECK-NEXT: [[B:%.*]] = fsub <2 x float> <float -0.000000e+00, float undef>, [[A:%.*]]
-; CHECK-NEXT: [[C:%.*]] = fptrunc <2 x float> [[B]] to <2 x half>
+; CHECK-NEXT: [[TMP1:%.*]] = fptrunc <2 x float> [[A:%.*]] to <2 x half>
+; CHECK-NEXT: [[C:%.*]] = fsub <2 x half> <half 0xH8000, half 0xH8000>, [[TMP1]]
; CHECK-NEXT: ret <2 x half> [[C]]
;
%b = fsub <2 x float> <float -0.0, float undef>, %a
OpenPOWER on IntegriCloud