[llvm] r327287 - [InstSimplify] add test for m_NegZero with undef elt; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 12 08:47:33 PDT 2018
Author: spatel
Date: Mon Mar 12 08:47:32 2018
New Revision: 327287
URL: http://llvm.org/viewvc/llvm-project?rev=327287&view=rev
Log:
[InstSimplify] add test for m_NegZero with undef elt; NFC
Modified:
llvm/trunk/test/Transforms/InstSimplify/floating-point-arithmetic.ll
Modified: llvm/trunk/test/Transforms/InstSimplify/floating-point-arithmetic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstSimplify/floating-point-arithmetic.ll?rev=327287&r1=327286&r2=327287&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstSimplify/floating-point-arithmetic.ll (original)
+++ llvm/trunk/test/Transforms/InstSimplify/floating-point-arithmetic.ll Mon Mar 12 08:47:32 2018
@@ -1,6 +1,15 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instsimplify -S | FileCheck %s
+define <2 x float> @fsub_negzero_vec_undef_elts(<2 x float> %x) {
+; CHECK-LABEL: @fsub_negzero_vec_undef_elts(
+; CHECK-NEXT: [[R:%.*]] = fsub nsz <2 x float> [[X:%.*]], <float undef, float -0.000000e+00>
+; CHECK-NEXT: ret <2 x float> [[R]]
+;
+ %r = fsub nsz <2 x float> %x, <float undef, float -0.0>
+ ret <2 x float> %r
+}
+
; fsub -0.0, (fsub -0.0, X) ==> X
define float @fsub_-0_-0_x(float %a) {
; CHECK-LABEL: @fsub_-0_-0_x(
More information about the llvm-commits
mailing list