[llvm-commits] [llvm] r106562 - in /llvm/trunk/test/CodeGen: Generic/v-binop-widen.ll Generic/v-binop-widen2.ll X86/v-binop-widen.ll X86/v-binop-widen2.ll

Mon P Wang wangmp at apple.com
Tue Jun 22 12:40:50 PDT 2010


Author: wangmp
Date: Tue Jun 22 14:40:50 2010
New Revision: 106562

URL: http://llvm.org/viewvc/llvm-project?rev=106562&view=rev
Log:
Move v-binop-widen tests to X86 since they don't work on all platforms

Added:
    llvm/trunk/test/CodeGen/X86/v-binop-widen.ll
      - copied, changed from r106555, llvm/trunk/test/CodeGen/Generic/v-binop-widen.ll
    llvm/trunk/test/CodeGen/X86/v-binop-widen2.ll
      - copied, changed from r106555, llvm/trunk/test/CodeGen/Generic/v-binop-widen2.ll
Removed:
    llvm/trunk/test/CodeGen/Generic/v-binop-widen.ll
    llvm/trunk/test/CodeGen/Generic/v-binop-widen2.ll

Removed: llvm/trunk/test/CodeGen/Generic/v-binop-widen.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/v-binop-widen.ll?rev=106561&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/v-binop-widen.ll (original)
+++ llvm/trunk/test/CodeGen/Generic/v-binop-widen.ll (removed)
@@ -1,8 +0,0 @@
-; RUN: llc -march=x86 < %s
-
-%vec = type <9 x float>
-define %vec @vecdiv( %vec %p1, %vec %p2)
-{
-  %result = fdiv %vec %p1, %p2
-  ret %vec %result
-}

Removed: llvm/trunk/test/CodeGen/Generic/v-binop-widen2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/v-binop-widen2.ll?rev=106561&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/v-binop-widen2.ll (original)
+++ llvm/trunk/test/CodeGen/Generic/v-binop-widen2.ll (removed)
@@ -1,37 +0,0 @@
-; RUN: llvm-as < %s | lli
-
-%vec = type <6 x float>
-
-define %vec @vecdiv( %vec %p1, %vec %p2)
-{
-  %result = fdiv %vec %p1, %p2
-  ret %vec %result
-}
-
- at a = constant %vec < float 2.0, float 4.0, float 8.0, float 16.0, float 32.0, float 64.0 >
- at b = constant %vec < float 2.0, float 2.0, float 2.0, float 2.0, float 2.0, float 2.0 >
-
-; Expected result: < 1.0, 2.0, 4.0, ..., 2.0^(n-1) >
-; main() returns 0 if the result is expected and 1 otherwise
-define i32 @main() nounwind {
-entry:
-  %avec = load %vec* @a
-  %bvec = load %vec* @b
-
-  %res = call %vec @vecdiv(%vec %avec, %vec %bvec)
-  br label %loop
-loop:
-  %idx = phi i32 [0, %entry], [%nextInd, %looptail]
-  %expected = phi float [1.0, %entry], [%nextExpected, %looptail]
-  %elem = extractelement %vec %res, i32 %idx
-  %expcmp = fcmp oeq float %elem, %expected
-  br i1 %expcmp, label %looptail, label %return
-looptail:
-  %nextExpected = fmul float %expected, 2.0
-  %nextInd = add i32 %idx, 1
-  %cmp = icmp slt i32 %nextInd, 6
-  br i1 %cmp, label %loop, label %return
-return:
-  %retval = phi i32 [0, %looptail], [1, %loop]
-  ret i32 %retval
-}

Copied: llvm/trunk/test/CodeGen/X86/v-binop-widen.ll (from r106555, llvm/trunk/test/CodeGen/Generic/v-binop-widen.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/v-binop-widen.ll?p2=llvm/trunk/test/CodeGen/X86/v-binop-widen.ll&p1=llvm/trunk/test/CodeGen/Generic/v-binop-widen.ll&r1=106555&r2=106562&rev=106562&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/v-binop-widen.ll (original)
+++ llvm/trunk/test/CodeGen/X86/v-binop-widen.ll Tue Jun 22 14:40:50 2010
@@ -1,4 +1,7 @@
-; RUN: llc -march=x86 < %s
+; RUN: llc -march=x86 < %s | FileCheck %s
+; CHECK: divss
+; CHECK: divps
+; CHECK: divps
 
 %vec = type <9 x float>
 define %vec @vecdiv( %vec %p1, %vec %p2)
@@ -6,3 +9,4 @@
   %result = fdiv %vec %p1, %p2
   ret %vec %result
 }
+

Copied: llvm/trunk/test/CodeGen/X86/v-binop-widen2.ll (from r106555, llvm/trunk/test/CodeGen/Generic/v-binop-widen2.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/v-binop-widen2.ll?p2=llvm/trunk/test/CodeGen/X86/v-binop-widen2.ll&p1=llvm/trunk/test/CodeGen/Generic/v-binop-widen2.ll&r1=106555&r2=106562&rev=106562&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/v-binop-widen2.ll (original)
+++ llvm/trunk/test/CodeGen/X86/v-binop-widen2.ll Tue Jun 22 14:40:50 2010
@@ -1,7 +1,9 @@
-; RUN: llvm-as < %s | lli
+; RUN: llc -march=x86 < %s | FileCheck %s
 
 %vec = type <6 x float>
-
+; CHECK: divss
+; CHECK: divss
+; CHECK: divps
 define %vec @vecdiv( %vec %p1, %vec %p2)
 {
   %result = fdiv %vec %p1, %p2
@@ -13,6 +15,7 @@
 
 ; Expected result: < 1.0, 2.0, 4.0, ..., 2.0^(n-1) >
 ; main() returns 0 if the result is expected and 1 otherwise
+; to execute, use llvm-as < %s | lli
 define i32 @main() nounwind {
 entry:
   %avec = load %vec* @a





More information about the llvm-commits mailing list