Displaying 2 results from an estimated 2 matches for "0xl00000000000000000000000000000000".
Did you mean:
0x00000000000000000000000000000000
2019 Apr 11
2
128 bit float constant
...MValueRef TestConst(LLVMContextRef C, uint64_t a, uint64_t b) {
Type *ty = Type::getFP128Ty(*unwrap(C));
ArrayRef<uint64_t> ar[2] = {a,b};
APInt ai(128,*ar);
APFloat quad(APFloat::IEEEquad(), ai);
return wrap(ConstantFP::get(ty,quad));
}
but for 1.0e0 it returns zero
store fp128 0xL00000000000000000000000000000000, fp128* %e, align 16
and for 1.23e0 returns this, which is wrong. (that repeating 147AE is a bit
weird)
store fp128 0xLE147AE147AE147AE0000000000000000, fp128* %e, align 16
so I'm obviously doing something wrong.
Regards Peter
On Wed, Apr 10, 2019 at 9:44 PM Tim Northover <t.p.northo...
2019 Apr 10
2
128 bit float constant
Hi,
Just wondering if it's possible to construct a 128 bit quad precision
floating point
constant without converting the value back to a string.
Cheers Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190410/a527f240/attachment.html>