diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-10-24 02:10:54 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-10-24 02:10:54 +0000 |
commit | 2ef5bd3ba685704bc9c0d03654cb0b7fd1b071e6 (patch) | |
tree | 76dce9644a8a9bed31bdacd2ad364fb76646af50 /test | |
parent | 847a9c6d778b3209683a92fcb37708b2e8b08f3f (diff) | |
download | llvm-2ef5bd3ba685704bc9c0d03654cb0b7fd1b071e6.tar.gz llvm-2ef5bd3ba685704bc9c0d03654cb0b7fd1b071e6.tar.bz2 llvm-2ef5bd3ba685704bc9c0d03654cb0b7fd1b071e6.tar.xz |
[mips] Make sure sret argument is returned in register V0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Mips/mips64-sret.ll | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/Mips/mips64-sret.ll b/test/CodeGen/Mips/mips64-sret.ll index 498c5fe174..e26b0223b4 100644 --- a/test/CodeGen/Mips/mips64-sret.ll +++ b/test/CodeGen/Mips/mips64-sret.ll @@ -1,4 +1,4 @@ -; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=n64 -O0 < %s +; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=n64 -O3 < %s | FileCheck %s %struct.S = type { [8 x i32] } @@ -6,6 +6,8 @@ define void @f(%struct.S* noalias sret %agg.result) nounwind { entry: +; CHECK: daddu $2, $zero, $4 + %0 = bitcast %struct.S* %agg.result to i8* call void @llvm.memcpy.p0i8.p0i8.i64(i8* %0, i8* bitcast (%struct.S* @g to i8*), i64 32, i32 4, i1 false) ret void |