[PATCH] D78887: [VE] Support floating point immediate values
Simon Moll via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 27 02:06:06 PDT 2020
simoll added inline comments.
================
Comment at: llvm/test/CodeGen/VE/fp_mul.ll:97
+; CHECK-NEXT: or %s11, 0, %s9
+ %r = fmul float %a, 1.175494210692441075487029444849287348827052428745893333857174530571588870475618904265502351336181163787841796875E-38
+ ret float %r
----------------
kaz7 wrote:
> simoll wrote:
> > I guess this is one of those cases where it makes sense to use a fp hex constant: it is shorter and the expected output relates to the bitencoding anyway.
> I wish I could. Recently, llvm is modified to not use hex values in llvm-ir. After that, llc doesn't accept hex values when I tried to use hex values. Please let me know if you know how to write it in the current version. Thanks.
The IR in line 61 uses a hex fp constant. I'd expect this to work here too.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78887/new/
https://reviews.llvm.org/D78887
More information about the llvm-commits
mailing list