diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-06-05 03:00:09 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-06-05 03:00:09 +0000 |
commit | 90f9ec0dff7592c635e719909d288b5de04d224b (patch) | |
tree | f33a319a0f5dc59affb368aff2344547c6a495ce /test | |
parent | 211c8ddb5b500ed84833751363d0cfe1115f4dd3 (diff) | |
download | clang-90f9ec0dff7592c635e719909d288b5de04d224b.tar.gz |
Heed ABIArgInfo::getInReg() for return values.
The 'inreg' attribute can also be applied to function return values in
LLVM IR. The SPARC v9 backend is using the flag when returning structs
containing 32-bit floats.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183290 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/sparcv9-abi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/CodeGen/sparcv9-abi.c b/test/CodeGen/sparcv9-abi.c index 41b06dd01d..b4c7d68549 100644 --- a/test/CodeGen/sparcv9-abi.c +++ b/test/CodeGen/sparcv9-abi.c @@ -73,8 +73,7 @@ struct mixed { float b; }; -// CHECK: @f_mixed(i32 inreg %x.coerce0, float inreg %x.coerce1) -// FIXME: The return value should also be 'inreg'. +// CHECK: define inreg %struct.mixed @f_mixed(i32 inreg %x.coerce0, float inreg %x.coerce1) struct mixed f_mixed(struct mixed x) { x.a += 1; return x; |