[llvm-commits] CVS: llvm/test/CodeGen/Generic/switch-lower-feature.ll
Anton Korobeynikov
asl at math.spbu.ru
Sun Mar 25 15:01:32 PDT 2007
Changes in directory llvm/test/CodeGen/Generic:
switch-lower-feature.ll added (r1.1)
---
Log message:
Add "feature" testcase for new switch lowering code
---
Diffs of the changes: (+32 -0)
switch-lower-feature.ll | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+)
Index: llvm/test/CodeGen/Generic/switch-lower-feature.ll
diff -c /dev/null llvm/test/CodeGen/Generic/switch-lower-feature.ll:1.1
*** /dev/null Sun Mar 25 17:01:24 2007
--- llvm/test/CodeGen/Generic/switch-lower-feature.ll Sun Mar 25 17:01:14 2007
***************
*** 0 ****
--- 1,32 ----
+ ; RUN: llvm-as < %s | llc -march=x86 -o - | grep \$5 | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=x86 -o - | grep \$6 | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=x86 -o - | grep 1024 | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=x86 -o - | grep 1023 | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=x86 -o - | grep 1024 | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=x86 -o - | grep jg | wc -l | grep 2 &&
+ ; RUN: llvm-as < %s | llc -march=x86 -o - | grep ja | wc -l | grep 2 &&
+ ; RUN: llvm-as < %s | llc -march=x86 -o - | grep je | wc -l | grep 1
+
+ define i32 @main(i32 %tmp158) {
+ entry:
+ switch i32 %tmp158, label %bb336 [
+ i32 120, label %bb338
+ i32 121, label %bb338
+ i32 122, label %bb338
+ i32 123, label %bb338
+ i32 124, label %bb338
+ i32 125, label %bb338
+ i32 126, label %bb338
+ 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
+ }
More information about the llvm-commits
mailing list