aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendObjC
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-03-12 21:27:04 +0000
committerDuncan Sands <baldrick@free.fr>2008-03-12 21:27:04 +0000
commit40d4e512f1a420a79f8d8fca7abc6dc16add6059 (patch)
tree0f403e517c498e9d68fb90c237df0a354c861a35 /test/FrontendObjC
parentecb9ad5742b5dba1c834e0c79eff2214454e3193 (diff)
downloadexternal_llvm-40d4e512f1a420a79f8d8fca7abc6dc16add6059.zip
external_llvm-40d4e512f1a420a79f8d8fca7abc6dc16add6059.tar.gz
external_llvm-40d4e512f1a420a79f8d8fca7abc6dc16add6059.tar.bz2
Initial soft-float support for LegalizeTypes. I rewrote
the fcopysign expansion from LegalizeDAG to get rid of what seems to be a bug: the use of sign extension means that when copying the sign bit from an f32 to an f64, the upper 32 bits of the f64 (now an i64) are set, not just the top bit... I also generalized it to work for any sized floating point types, and removed the bogosity: SDOperand Mask1 = (SrcVT == MVT::f64) ? DAG.getConstantFP(BitsToDouble(1ULL << 63), SrcVT) : DAG.getConstantFP(BitsToFloat(1U << 31), SrcVT); Mask1 = DAG.getNode(ISD::BIT_CONVERT, SrcNVT, Mask1); (here SrcNVT is an integer with the same size as SrcVT). As far as I can see this takes a 1 << 63, converts to a double, converts that to a floating point constant then converts that to an integer constant, ending up with... 1 << 63 as an integer constant! So I just generate this integer constant directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48305 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendObjC')
0 files changed, 0 insertions, 0 deletions