[llvm] r244627 - fixed to use FileCheck

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 09:51:31 PDT 2015


Author: spatel
Date: Tue Aug 11 11:51:31 2015
New Revision: 244627

URL: http://llvm.org/viewvc/llvm-project?rev=244627&view=rev
Log:
fixed to use FileCheck

Modified:
    llvm/trunk/test/CodeGen/X86/powi.ll

Modified: llvm/trunk/test/CodeGen/X86/powi.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/powi.ll?rev=244627&r1=244626&r2=244627&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/powi.ll (original)
+++ llvm/trunk/test/CodeGen/X86/powi.ll Tue Aug 11 11:51:31 2015
@@ -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




More information about the llvm-commits mailing list