diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-03-19 07:28:33 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-03-19 07:28:33 +0000 |
commit | e6d5d39c072d3b16ff4183c515d7ccf198192958 (patch) | |
tree | 57312300a30d0b10726d10d7928aa6f657e9ad28 /test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll | |
parent | ce7d5db4d86b6eef20ffb9e981a1f0d428879e57 (diff) | |
download | external_llvm-e6d5d39c072d3b16ff4183c515d7ccf198192958.zip external_llvm-e6d5d39c072d3b16ff4183c515d7ccf198192958.tar.gz external_llvm-e6d5d39c072d3b16ff4183c515d7ccf198192958.tar.bz2 |
Upgrade tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll')
-rw-r--r-- | test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll b/test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll index 1cbe853..2fc1c98 100644 --- a/test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll +++ b/test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll @@ -1,21 +1,19 @@ -; RUN: llvm-upgrade < %s | llvm-as | opt -lowerswitch -disable-output +; RUN: llvm-as < %s | opt -lowerswitch -disable-output -void %solve() { +define void @solve() { entry: - %targetBlock = call ushort %solve_code( ) ; <ushort> [#uses=1] + %targetBlock = call i16 @solve_code( ) ; <i16> [#uses=1] br label %codeReplTail - then.1: ; preds = %codeReplTail ret void - loopexit.0: ; preds = %codeReplTail ret void - -codeReplTail: ; preds = %entry, %codeReplTail - switch ushort %targetBlock, label %codeReplTail [ - ushort 0, label %loopexit.0 - ushort 1, label %then.1 +codeReplTail: ; preds = %codeReplTail, %entry + switch i16 %targetBlock, label %codeReplTail [ + i16 0, label %loopexit.0 + i16 1, label %then.1 ] } -declare ushort %solve_code() +declare i16 @solve_code() + |