[llvm-commits] [llvm] r85256 - in /llvm/trunk/test/Feature: switch.ll testswitch.ll
Chris Lattner
sabre at nondot.org
Tue Oct 27 10:40:19 PDT 2009
Author: lattner
Date: Tue Oct 27 12:40:19 2009
New Revision: 85256
URL: http://llvm.org/viewvc/llvm-project?rev=85256&view=rev
Log:
rename test.
Added:
llvm/trunk/test/Feature/switch.ll
- copied unchanged from r85247, llvm/trunk/test/Feature/testswitch.ll
Removed:
llvm/trunk/test/Feature/testswitch.ll
Removed: llvm/trunk/test/Feature/testswitch.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/testswitch.ll?rev=85255&view=auto
==============================================================================
--- llvm/trunk/test/Feature/testswitch.ll (original)
+++ llvm/trunk/test/Feature/testswitch.ll (removed)
@@ -1,26 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis > %t1.ll
-; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
-; RUN: diff %t1.ll %t2.ll
-
- %int = type i32
-
-define i32 @squared(i32 %i0) {
- switch i32 %i0, label %Default [
- i32 1, label %Case1
- i32 2, label %Case2
- i32 4, label %Case4
- ]
-
-Default: ; preds = %0
- ret i32 -1
-
-Case1: ; preds = %0
- ret i32 1
-
-Case2: ; preds = %0
- ret i32 4
-
-Case4: ; preds = %0
- ret i32 16
-}
-
More information about the llvm-commits
mailing list