Skip to content

Commit a74dc59

Browse files
committed
[x86][AArch64] adjust fast-math-flags in tests; NFC
This goes with the proposal in D86403.
1 parent a842950 commit a74dc59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/test/CodeGen/AArch64/sqrt-fastmath.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ define <2 x double> @sqrt_fdiv_common_operand_vec(<2 x double> %x) nounwind {
493493
; CHECK-NEXT: fmul v0.2d, v0.2d, v1.2d
494494
; CHECK-NEXT: ret
495495
%sqrt = call <2 x double> @llvm.sqrt.v2f64(<2 x double> %x)
496-
%r = fdiv arcp reassoc <2 x double> %x, %sqrt
496+
%r = fdiv nsz arcp reassoc <2 x double> %x, %sqrt
497497
ret <2 x double> %r
498498
}
499499

llvm/test/CodeGen/X86/sqrt-fastmath.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ define <2 x double> @sqrt_fdiv_common_operand_vec(<2 x double> %x) nounwind {
930930
; AVX-NEXT: vdivpd %xmm1, %xmm0, %xmm0
931931
; AVX-NEXT: retq
932932
%sqrt = call <2 x double> @llvm.sqrt.v2f64(<2 x double> %x)
933-
%r = fdiv arcp reassoc <2 x double> %x, %sqrt
933+
%r = fdiv nsz arcp reassoc <2 x double> %x, %sqrt
934934
ret <2 x double> %r
935935
}
936936

0 commit comments

Comments
 (0)