diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-04 21:14:49 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-04 21:14:49 +0000 |
commit | 5502bf67cd49221583c15472150905ce13184d36 (patch) | |
tree | dd7fd9dcafde2d822aab98a8caefe05314efcc38 /test/CodeGen/Generic/switch-lower-feature.ll | |
parent | bbf6f5751d78f699f26f9be3f86a45baab3aac56 (diff) |
Properly emit range comparisons for switch cases, where neighbour cases
go to the same destination. Now we're producing really good code for
switch-lower-feature.ll testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/switch-lower-feature.ll')
-rw-r--r-- | test/CodeGen/Generic/switch-lower-feature.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/CodeGen/Generic/switch-lower-feature.ll b/test/CodeGen/Generic/switch-lower-feature.ll index 1eb46050d0..a1345cb871 100644 --- a/test/CodeGen/Generic/switch-lower-feature.ll +++ b/test/CodeGen/Generic/switch-lower-feature.ll @@ -1,10 +1,10 @@ -; RUN: llvm-as < %s | llc -march=x86 -o - | grep \$5 | wc -l | grep 1 && +; RUN: llvm-as < %s | llc -march=x86 -o - | grep \$7 | 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 jg | wc -l | grep 1 && +; RUN: llvm-as < %s | llc -march=x86 -o - | grep jb | wc -l | grep 1 && +; RUN: llvm-as < %s | llc -march=x86 -o - | grep jae | wc -l | grep 1 && ; RUN: llvm-as < %s | llc -march=x86 -o - | grep je | wc -l | grep 1 define i32 @main(i32 %tmp158) { |