]> git.lizzy.rs Git - rust.git/commit
x86: return single-float aggregates in a float register
authorJosh Stone <jistone@redhat.com>
Fri, 1 Sep 2017 23:05:19 +0000 (16:05 -0700)
committerJosh Stone <jistone@redhat.com>
Sat, 2 Sep 2017 01:21:29 +0000 (18:21 -0700)
commit40b14736a05c1d26d5be38a48a88cb938e317e59
tree24f72ac172e9507f17ef730faad73bb04ca4e5e4
parentf7c97040242fc689106455a73c41477bf76ebdd4
x86: return single-float aggregates in a float register

Following Clang's lead, and anecdotal evidence from the `float_one` part
of `run-make/extern-fn-struct-passing-abi`, use a floating point
register to return single-float aggregates, except on MSVC targets.
src/librustc_trans/cabi_x86.rs