diff options
author | Tom Musta <tommusta@gmail.com> | 2014-03-31 16:03:59 -0500 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-04-08 11:20:02 +0200 |
commit | bcb7652e8dd185f2acc36fd2b9eb7b6dffcc8c47 (patch) | |
tree | 92453a610272e55649c0b863e767ef6bed8fd9c0 /os-win32.c | |
parent | d359db00e6dfaf12cbdedd30e36f879110d4f9d1 (diff) |
target-ppc: Correct Simple VSR LE Host Inversions
A common pattern in the VSX helper code macros is the use of "x.fld[i]" where
"x" is a VSR and "fld" is an argument to a macro ("f64" or "f32" is passed).
This is not always correct on LE hosts.
This change addresses all instances of this pattern to be "x.fld" where "fld" is:
- "VsrD(0)" for scalar instructions accessing 64-bit numbers
- "VsrD(i)" for vector instructions accessing 64-bit numbers
- "VsrW(i)" for vector instructions accessing 32-bit numbers
Note that there are no instances of this pattern where a scalar instruction
accesses a 32-bit number.
Note also that it would be correct to use "VsrD(i)" for scalar instructions since
the loop index is only ever "0". I have choosen to use "VsrD(0)" instead ... it
seems a little clearer.
Signed-off-by: Tom Musta <tommusta@gmail.com>
Tested-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'os-win32.c')
0 files changed, 0 insertions, 0 deletions