diff options
author | Qiu Chaofan <qiucofan@cn.ibm.com> | 2020-12-02 17:12:20 +0800 |
---|---|---|
committer | Qiu Chaofan <qiucofan@cn.ibm.com> | 2020-12-02 17:16:32 +0800 |
commit | ffa2dce59070636e0d83d2797fb80c4ca2d7ea2d (patch) | |
tree | 90f917775eb6a864fedc6ba9d40ac2acc8f9bb74 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 01e49204b82057f356ad3fe0cabba139635ac733 (diff) | |
download | llvm-ffa2dce59070636e0d83d2797fb80c4ca2d7ea2d.zip llvm-ffa2dce59070636e0d83d2797fb80c4ca2d7ea2d.tar.gz llvm-ffa2dce59070636e0d83d2797fb80c4ca2d7ea2d.tar.bz2 |
[PowerPC] Fix FLT_ROUNDS_ on little endian
In lowering of FLT_ROUNDS_, FPSCR content will be moved into FP register
and then GPR, and then truncated into word.
For subtargets without direct move support, it will store and then load.
The load address needs adjustment (+4) only on big-endian targets. This
patch fixes it on using generic opcodes on little-endian and subtargets
with direct-move.
Reviewed By: steven.zhang
Differential Revision: https://reviews.llvm.org/D91845
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions