[llvm-commits] [llvm] r95651 - in /llvm/trunk/test/CodeGen/Generic: switch-lower-feature-2.ll switch-lower-feature.ll
Chris Lattner
sabre at nondot.org
Mon Feb 8 22:19:20 PST 2010
Author: lattner
Date: Tue Feb 9 00:19:20 2010
New Revision: 95651
URL: http://llvm.org/viewvc/llvm-project?rev=95651&view=rev
Log:
merge two tests, make target independent.
Removed:
llvm/trunk/test/CodeGen/Generic/switch-lower-feature-2.ll
Modified:
llvm/trunk/test/CodeGen/Generic/switch-lower-feature.ll
Removed: llvm/trunk/test/CodeGen/Generic/switch-lower-feature-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/switch-lower-feature-2.ll?rev=95650&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/switch-lower-feature-2.ll (original)
+++ llvm/trunk/test/CodeGen/Generic/switch-lower-feature-2.ll (removed)
@@ -1,50 +0,0 @@
-; RUN: llc < %s -march=x86 -o %t
-; RUN: grep jb %t | count 1
-; RUN: grep \\\$6 %t | count 2
-; RUN: grep 1024 %t | count 1
-; RUN: grep 1023 %t | count 1
-; RUN: grep 119 %t | count 1
-; RUN: grep JTI %t | count 2
-; RUN: grep jg %t | count 3
-; RUN: grep ja %t | count 1
-; RUN: grep jns %t | count 1
-
-target triple = "i686-pc-linux-gnu"
-
-define i32 @main(i32 %tmp158) {
-entry:
- switch i32 %tmp158, label %bb336 [
- i32 -2147483648, label %bb338
- i32 -2147483647, label %bb338
- i32 -2147483646, label %bb338
- i32 120, label %bb338
- i32 121, label %bb339
- i32 122, label %bb340
- i32 123, label %bb341
- i32 124, label %bb342
- i32 125, label %bb343
- i32 126, label %bb336
- i32 1024, label %bb338
- i32 0, label %bb338
- i32 1, label %bb338
- i32 2, label %bb338
- i32 3, label %bb338
- i32 4, label %bb338
- i32 5, label %bb338
- ]
-bb336:
- ret i32 10
-bb338:
- ret i32 11
-bb339:
- ret i32 12
-bb340:
- ret i32 13
-bb341:
- ret i32 14
-bb342:
- ret i32 15
-bb343:
- ret i32 18
-
-}
Modified: llvm/trunk/test/CodeGen/Generic/switch-lower-feature.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/switch-lower-feature.ll?rev=95651&r1=95650&r2=95651&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/switch-lower-feature.ll (original)
+++ llvm/trunk/test/CodeGen/Generic/switch-lower-feature.ll Tue Feb 9 00:19:20 2010
@@ -1,10 +1,6 @@
-; RUN: llc < %s -march=x86 -o - | grep {\$7} | count 1
-; RUN: llc < %s -march=x86 -o - | grep {\$6} | count 1
-; RUN: llc < %s -march=x86 -o - | grep 1024 | count 1
-; RUN: llc < %s -march=x86 -o - | grep jb | count 2
-; RUN: llc < %s -march=x86 -o - | grep je | count 1
+; RUN: llc < %s
-define i32 @main(i32 %tmp158) {
+define i32 @test(i32 %tmp158) {
entry:
switch i32 %tmp158, label %bb336 [
i32 120, label %bb338
@@ -27,3 +23,41 @@
bb338:
ret i32 11
}
+
+define i32 @test2(i32 %tmp158) {
+entry:
+ switch i32 %tmp158, label %bb336 [
+ i32 -2147483648, label %bb338
+ i32 -2147483647, label %bb338
+ i32 -2147483646, label %bb338
+ i32 120, label %bb338
+ i32 121, label %bb339
+ i32 122, label %bb340
+ i32 123, label %bb341
+ i32 124, label %bb342
+ i32 125, label %bb343
+ i32 126, label %bb336
+ i32 1024, label %bb338
+ i32 0, label %bb338
+ i32 1, label %bb338
+ i32 2, label %bb338
+ i32 3, label %bb338
+ i32 4, label %bb338
+ i32 5, label %bb338
+ ]
+bb336:
+ ret i32 10
+bb338:
+ ret i32 11
+bb339:
+ ret i32 12
+bb340:
+ ret i32 13
+bb341:
+ ret i32 14
+bb342:
+ ret i32 15
+bb343:
+ ret i32 18
+
+}
More information about the llvm-commits
mailing list