[llvm] a74dc59 - [x86][AArch64] adjust fast-math-flags in tests; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 15:16:27 PDT 2020


Author: Sanjay Patel
Date: 2020-08-24T18:16:13-04:00
New Revision: a74dc598fb6b878908ffe769025f79f17e54cab0

URL: https://github.com/llvm/llvm-project/commit/a74dc598fb6b878908ffe769025f79f17e54cab0
DIFF: https://github.com/llvm/llvm-project/commit/a74dc598fb6b878908ffe769025f79f17e54cab0.diff

LOG: [x86][AArch64] adjust fast-math-flags in tests; NFC

This goes with the proposal in D86403.

Added: 
    

Modified: 
    llvm/test/CodeGen/AArch64/sqrt-fastmath.ll
    llvm/test/CodeGen/X86/sqrt-fastmath.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AArch64/sqrt-fastmath.ll b/llvm/test/CodeGen/AArch64/sqrt-fastmath.ll
index be13a2ec84cb..a8cb61f6fcc3 100644
--- a/llvm/test/CodeGen/AArch64/sqrt-fastmath.ll
+++ b/llvm/test/CodeGen/AArch64/sqrt-fastmath.ll
@@ -493,7 +493,7 @@ define <2 x double> @sqrt_fdiv_common_operand_vec(<2 x double> %x) nounwind {
 ; CHECK-NEXT:    fmul v0.2d, v0.2d, v1.2d
 ; CHECK-NEXT:    ret
   %sqrt = call <2 x double> @llvm.sqrt.v2f64(<2 x double> %x)
-  %r = fdiv arcp reassoc <2 x double> %x, %sqrt
+  %r = fdiv nsz arcp reassoc <2 x double> %x, %sqrt
   ret <2 x double> %r
 }
 

diff  --git a/llvm/test/CodeGen/X86/sqrt-fastmath.ll b/llvm/test/CodeGen/X86/sqrt-fastmath.ll
index a0a65e5f2423..0f8c6ef1240c 100644
--- a/llvm/test/CodeGen/X86/sqrt-fastmath.ll
+++ b/llvm/test/CodeGen/X86/sqrt-fastmath.ll
@@ -930,7 +930,7 @@ define <2 x double> @sqrt_fdiv_common_operand_vec(<2 x double> %x) nounwind {
 ; AVX-NEXT:    vdivpd %xmm1, %xmm0, %xmm0
 ; AVX-NEXT:    retq
   %sqrt = call <2 x double> @llvm.sqrt.v2f64(<2 x double> %x)
-  %r = fdiv arcp reassoc <2 x double> %x, %sqrt
+  %r = fdiv nsz arcp reassoc <2 x double> %x, %sqrt
   ret <2 x double> %r
 }
 


        


More information about the llvm-commits mailing list