aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/Program.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-03-26 10:56:22 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-03-26 10:56:22 +0000
commit7d35d3f432cb59d3d1c0884af3023de9b5cb10b1 (patch)
tree0876e347922a74f91bbc5ed711b877f5f81a9478 /lib/Support/Program.cpp
parentd67768db809d6b1cfe6f7c484b3719a6103286ea (diff)
PowerPC: Simplify FADD in round-to-zero mode.
As part of the the sequence generated to implement long double -> int conversions, we need to perform an FADD in round-to-zero mode. This is problematical since the FPSCR is not at all modeled at the SelectionDAG level, and thus there is a risk of getting floating point instructions generated out of sequence with the instructions to modify FPSCR. The current code handles this by somewhat "special" patterns that in part have dummy operands, and/or duplicate existing instructions, making them awkward to handle in the asm parser. This commit changes this by leaving the "FADD in round-to-zero mode" as an atomic operation on the SelectionDAG level, and only split it up into real instructions at the MI level (via custom inserter). Since at *this* level the FPSCR *is* modeled (via the "RM" hard register), much of the "special" stuff can just go away, and the resulting patterns can be used by the asm parser. No significant change in generated code expected. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Program.cpp')
0 files changed, 0 insertions, 0 deletions