diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-01 20:28:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-01 20:28:35 +0000 |
commit | 8b8ff16dbac78483e82ce8974b15f725315a4b2b (patch) | |
tree | 285ea5bef0c2d63cefa39e0551bcd6d2197ecb15 /test | |
parent | 4edf6c043e7a9b9941db7caa3084b99aa18d91ad (diff) | |
download | external_llvm-8b8ff16dbac78483e82ce8974b15f725315a4b2b.zip external_llvm-8b8ff16dbac78483e82ce8974b15f725315a4b2b.tar.gz external_llvm-8b8ff16dbac78483e82ce8974b15f725315a4b2b.tar.bz2 |
New testcase for PR310
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/TailDup/2004-04-01-DemoteRegToStack.llx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Transforms/TailDup/2004-04-01-DemoteRegToStack.llx b/test/Transforms/TailDup/2004-04-01-DemoteRegToStack.llx new file mode 100644 index 0000000..21a3ffa --- /dev/null +++ b/test/Transforms/TailDup/2004-04-01-DemoteRegToStack.llx @@ -0,0 +1,22 @@ +; RUN: llvm-as < %s | opt -tailduplicate -disable-output + +void %interpret() { +entry: + br label %retry + +retry: + %tmp.8 = call int %interp() + switch uint 0, label %endif.4 [ + uint 4294967271, label %return + uint 4294967280, label %return + ] + +endif.4: + br bool false, label %return, label %retry + +return: + %result.0 = phi int [ %tmp.8, %retry ], [%tmp.8, %retry], [ %tmp.8, %endif.4 ] + ret void +} + +declare int %interp() |