From: Chris Lattner Date: Tue, 27 Oct 2009 17:40:19 +0000 (+0000) Subject: rename test. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9357754d097f006e7aec7b15f0730bb0f6c2f0c5;p=oota-llvm.git rename test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85256 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Feature/switch.ll b/test/Feature/switch.ll new file mode 100644 index 00000000000..417f56b58d0 --- /dev/null +++ b/test/Feature/switch.ll @@ -0,0 +1,26 @@ +; 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 +} + diff --git a/test/Feature/testswitch.ll b/test/Feature/testswitch.ll deleted file mode 100644 index 417f56b58d0..00000000000 --- a/test/Feature/testswitch.ll +++ /dev/null @@ -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 -} -