aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2014-01-12 04:13:17 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2014-01-12 04:13:17 +0000
commite7084a1c5ccbdf15dfea5dc2b3fe693f265ccfbf (patch)
treecd917da7a98fc6e589249c603033da61d3c69c8d /llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp
parent4bde03023b113536afbb6733b3dcfe6c8540e431 (diff)
downloadllvm-e7084a1c5ccbdf15dfea5dc2b3fe693f265ccfbf.zip
llvm-e7084a1c5ccbdf15dfea5dc2b3fe693f265ccfbf.tar.gz
llvm-e7084a1c5ccbdf15dfea5dc2b3fe693f265ccfbf.tar.bz2
The SPARCv9 ABI returns a float in %f0.
This is different from the argument passing convention which puts the first float argument in %f1. With this patch, all returned floats are treated as if the 'inreg' flag were set. This means multiple float return values get packed in %f0, %f1, %f2, ... Note that when returning a struct in registers, clang will set the 'inreg' flag on the return value, so that behavior is unchanged. This also happens when returning a float _Complex. llvm-svn: 199028
Diffstat (limited to 'llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions