aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fdiv.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/fdiv.ll')
-rw-r--r--test/CodeGen/X86/fdiv.ll15
1 files changed, 4 insertions, 11 deletions
diff --git a/test/CodeGen/X86/fdiv.ll b/test/CodeGen/X86/fdiv.ll
index 553f14efa1..82b9190b9a 100644
--- a/test/CodeGen/X86/fdiv.ll
+++ b/test/CodeGen/X86/fdiv.ll
@@ -1,22 +1,17 @@
-; RUN: llc < %s -march=x86-64 | FileCheck %s
-; RUN: llc < %s -march=x86-64 -enable-unsafe-fp-math | FileCheck -check-prefix=UNSAFE %s
+; RUN: llc < %s -march=x86-64 -enable-unsafe-fp-math | FileCheck %s
define double @exact(double %x) {
-; Exact division by a constant always converted to multiplication.
+; Exact division by a constant converted to multiplication.
; CHECK: @exact
; CHECK: mulsd
-; UNSAFE: @exact
-; UNSAFE: mulsd
%div = fdiv double %x, 2.0
ret double %div
}
define double @inexact(double %x) {
-; Inexact division by a constant converted to multiplication if unsafe-math.
+; Inexact division by a constant converted to multiplication.
; CHECK: @inexact
-; CHECK: divsd
-; UNSAFE: @inexact
-; UNSAFE: mulsd
+; CHECK: mulsd
%div = fdiv double %x, 0x41DFFFFFFFC00000
ret double %div
}
@@ -25,8 +20,6 @@ define double @funky(double %x) {
; No conversion to multiplication if too funky.
; CHECK: @funky
; CHECK: divsd
-; UNSAFE: @funky
-; UNSAFE: divsd
%div = fdiv double %x, 0.0
ret double %div
}