diff options
| author | Devang Patel <dpatel@apple.com> | 2008-02-21 01:54:02 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2008-02-21 01:54:02 +0000 |
| commit | bb4f8d40458eb086cb901e19c4be0777e2a73dce (patch) | |
| tree | 12bc619006390b92f39e19ae5f77eb52f9deb8f0 /test | |
| parent | ef00f9d377040c9599ac827daaaa0722381fd310 (diff) | |
Let function call return aggregate.
Now, we have very first multiple return value testcase!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
| -rw-r--r-- | test/Assembler/2005-01-31-CallingAggregateFunction.ll | 1 | ||||
| -rw-r--r-- | test/Assembler/2008-02-20-MultipleReturnValue.ll | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/test/Assembler/2005-01-31-CallingAggregateFunction.ll b/test/Assembler/2005-01-31-CallingAggregateFunction.ll index ebe2ee9e76..e6baf34a6c 100644 --- a/test/Assembler/2005-01-31-CallingAggregateFunction.ll +++ b/test/Assembler/2005-01-31-CallingAggregateFunction.ll @@ -1,5 +1,4 @@ ; RUN: llvm-as < %s -o /dev/null -f -; XFAIL: * define void @test() { call {} @foo() diff --git a/test/Assembler/2008-02-20-MultipleReturnValue.ll b/test/Assembler/2008-02-20-MultipleReturnValue.ll new file mode 100644 index 0000000000..a40fa3ebcf --- /dev/null +++ b/test/Assembler/2008-02-20-MultipleReturnValue.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s -disable-output + +define {i32, i8} @foo(i32 %p) { + ret i32 1, i8 2 +} + +define i8 @f2(i32 %p) { + %c = call {i32, i8} @foo(i32 %p) + %d = getresult {i32, i8} %c, 1 + %e = add i8 %d, 1 + ret i8 %e +} |
