[llvm-commits] [llvm] r85258 - in /llvm/trunk/test/Feature: switch.ll terminators.ll

Chris Lattner sabre at nondot.org
Tue Oct 27 10:40:49 PDT 2009


Author: lattner
Date: Tue Oct 27 12:40:49 2009
New Revision: 85258

URL: http://llvm.org/viewvc/llvm-project?rev=85258&view=rev
Log:
change of mind :)

Added:
    llvm/trunk/test/Feature/terminators.ll
      - copied unchanged from r85256, llvm/trunk/test/Feature/switch.ll
Removed:
    llvm/trunk/test/Feature/switch.ll

Removed: llvm/trunk/test/Feature/switch.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/switch.ll?rev=85257&view=auto

==============================================================================
--- llvm/trunk/test/Feature/switch.ll (original)
+++ llvm/trunk/test/Feature/switch.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