summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/DelaySlotFiller.cpp
diff options
context:
space:
mode:
authorDaniel Cederman <cederman@gaisler.com>2018-08-27 07:14:53 +0000
committerDaniel Cederman <cederman@gaisler.com>2018-08-27 07:14:53 +0000
commit92dadc0bca8027635daf28ec87cae2bbbe41990b (patch)
tree7cf11fe2731429848541a23f79953b9c9b471216 /llvm/lib/Target/Sparc/DelaySlotFiller.cpp
parentfe282170487a7f021aca0af774091fcdf9a9c41b (diff)
downloadbcm5719-llvm-92dadc0bca8027635daf28ec87cae2bbbe41990b.tar.gz
bcm5719-llvm-92dadc0bca8027635daf28ec87cae2bbbe41990b.zip
[Sparc] Custom bitcast between f64 and v2i32
Summary: Currently bitcasting constants from f64 to v2i32 is done by storing the value to the stack and then loading it again. This is not necessary, but seems to happen because v2i32 is a valid type for Sparc V8. If it had not been legal, we would have gotten help from the type legalizer. This patch tries to do the same work as the legalizer would have done by bitcasting the floating point constant and splitting the value up into a vector of two i32 values. Reviewers: venkatra, jyknight Reviewed By: jyknight Subscribers: glaubitz, fedor.sergeev, jrtc27, llvm-commits Differential Revision: https://reviews.llvm.org/D49219 llvm-svn: 340723
Diffstat (limited to 'llvm/lib/Target/Sparc/DelaySlotFiller.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud