summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-08-11 16:51:31 +0000
committerSanjay Patel <spatel@rotateright.com>2015-08-11 16:51:31 +0000
commitc3e8349a3eeb56e4e98379f04d66876511cf5416 (patch)
tree42a74807afb579a4324a256cf26aae51debeddf8 /llvm/test
parent3c4737db547283dfa524b0d1ce4c5cbf6aef0dc9 (diff)
downloadbcm5719-llvm-c3e8349a3eeb56e4e98379f04d66876511cf5416.tar.gz
bcm5719-llvm-c3e8349a3eeb56e4e98379f04d66876511cf5416.zip
fixed to use FileCheck
llvm-svn: 244627
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/powi.ll20
1 files changed, 15 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/X86/powi.ll b/llvm/test/CodeGen/X86/powi.ll
index 122665a4dbe..623696057ca 100644
--- a/llvm/test/CodeGen/X86/powi.ll
+++ b/llvm/test/CodeGen/X86/powi.ll
@@ -1,10 +1,20 @@
-; RUN: llc %s -mtriple=x86_64-unknown-unknown -mattr=sse2 -o - | grep mulsd | count 6
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=sse2 | FileCheck %s
; Ideally this would compile to 5 multiplies.
-define double @_Z3f10d(double %a) nounwind readonly ssp noredzone {
-entry:
- %0 = tail call double @llvm.powi.f64(double %a, i32 15) nounwind ; <double> [#uses=1]
- ret double %0
+define double @pow_wrapper(double %a) nounwind readonly ssp noredzone {
+; CHECK-LABEL: pow_wrapper:
+; CHECK: # BB#0:
+; CHECK-NEXT: movapd %xmm0, %xmm1
+; CHECK-NEXT: mulsd %xmm1, %xmm1
+; CHECK-NEXT: mulsd %xmm1, %xmm0
+; CHECK-NEXT: mulsd %xmm1, %xmm1
+; CHECK-NEXT: mulsd %xmm1, %xmm0
+; CHECK-NEXT: mulsd %xmm1, %xmm1
+; CHECK-NEXT: mulsd %xmm0, %xmm1
+; CHECK-NEXT: movapd %xmm1, %xmm0
+; CHECK-NEXT: retq
+ %ret = tail call double @llvm.powi.f64(double %a, i32 15) nounwind ; <double> [#uses=1]
+ ret double %ret
}
declare double @llvm.powi.f64(double, i32) nounwind readonly
OpenPOWER on IntegriCloud