[llvm] r244360 - tighten checks using update_llc_test_checks.py
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 7 14:38:54 PDT 2015
Author: spatel
Date: Fri Aug 7 16:38:53 2015
New Revision: 244360
URL: http://llvm.org/viewvc/llvm-project?rev=244360&view=rev
Log:
tighten checks using update_llc_test_checks.py
Modified:
llvm/trunk/test/CodeGen/X86/fdiv.ll
Modified: llvm/trunk/test/CodeGen/X86/fdiv.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fdiv.ll?rev=244360&r1=244359&r2=244360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fdiv.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fdiv.ll Fri Aug 7 16:38:53 2015
@@ -2,40 +2,52 @@
define double @exact(double %x) {
; Exact division by a constant converted to multiplication.
-; CHECK: @exact
-; CHECK: mulsd
+; CHECK-LABEL: exact:
+; CHECK: ## BB#0:
+; CHECK-NEXT: mulsd {{.*}}(%rip), %xmm0
+; CHECK-NEXT: retq
%div = fdiv double %x, 2.0
ret double %div
}
define double @inexact(double %x) {
; Inexact division by a constant converted to multiplication.
-; CHECK: @inexact
-; CHECK: mulsd
- %div = fdiv double %x, 0x41DFFFFFFFC00000
+; CHECK-LABEL: inexact:
+; CHECK: ## BB#0:
+; CHECK-NEXT: mulsd {{.*}}(%rip), %xmm0
+; CHECK-NEXT: retq
+ %div = fdiv double %x, 0x41DFFFFFFFC00000
ret double %div
}
define double @funky(double %x) {
; No conversion to multiplication if too funky.
-; CHECK: @funky
-; CHECK: divsd
+; CHECK-LABEL: funky:
+; CHECK: ## BB#0:
+; CHECK-NEXT: xorpd %xmm1, %xmm1
+; CHECK-NEXT: divsd %xmm1, %xmm0
+; CHECK-NEXT: retq
%div = fdiv double %x, 0.0
ret double %div
}
define double @denormal1(double %x) {
; Don't generate multiplication by a denormal.
-; CHECK: @denormal1
-; CHECK: divsd
+; CHECK-LABEL: denormal1:
+; CHECK: ## BB#0:
+; CHECK-NEXT: divsd {{.*}}(%rip), %xmm0
+; CHECK-NEXT: retq
%div = fdiv double %x, 0x7FD0000000000001
ret double %div
}
define double @denormal2(double %x) {
; Don't generate multiplication by a denormal.
-; CHECK: @denormal
-; CHECK: divsd
+; CHECK-LABEL: denormal2:
+; CHECK: ## BB#0:
+; CHECK-NEXT: divsd {{.*}}(%rip), %xmm0
+; CHECK-NEXT: retq
%div = fdiv double %x, 0x7FEFFFFFFFFFFFFF
ret double %div
}
+
More information about the llvm-commits
mailing list