diff options
author | Devang Patel <dpatel@apple.com> | 2008-03-11 05:46:42 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-03-11 05:46:42 +0000 |
commit | 7c490d4104baf6984ff04cf6a60f2f8825c54812 (patch) | |
tree | 40f68ec4caf0d0ea89f69ad0c51129c2e6e91a4b /test/Transforms | |
parent | 447ff68c08bc01aa040ae6d0291af69b55bb8e57 (diff) | |
download | external_llvm-7c490d4104baf6984ff04cf6a60f2f8825c54812.zip external_llvm-7c490d4104baf6984ff04cf6a60f2f8825c54812.tar.gz external_llvm-7c490d4104baf6984ff04cf6a60f2f8825c54812.tar.bz2 |
Initial multiple return values support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/SCCP/2008-03-10-sret.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/SCCP/2008-03-10-sret.ll b/test/Transforms/SCCP/2008-03-10-sret.ll new file mode 100644 index 0000000..284a590 --- /dev/null +++ b/test/Transforms/SCCP/2008-03-10-sret.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | opt -ipsccp -disable-output + +define internal {i32, i32} @bar(i32 %A) { + %X = add i32 1, 2 + ret i32 %A, i32 %A +} + +define i32 @foo() { + %X = call {i32, i32} @bar(i32 17) + %Y = getresult {i32, i32} %X, 0 + ret i32 %Y +} |