[PATCH] D75729: [RISCV] Select +0.0 immediate using fcvt.{d, s}.{x, w} fN, x0
Luís Marques via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 6 03:18:33 PST 2020
luismarques added a comment.
GCC seems to use `fmv.s.x` / `fmv.d.x` (the former of which now should be called `fmv.w.x`? ) instead of `fcvt`, not sure why. A quick Googling returned:
http://gcc.1065356.n8.nabble.com/New-Port-for-RISC-V-td1338959.html
> +;; Floating-point constant +0.0, used for FCVT-based moves when FMV is
> +;; not available in RV32.
Which would suggest that, at least at some point in the past, there was a reason for preferring FMV over FCVT? Weird. I have to look into that more carefully.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75729/new/
https://reviews.llvm.org/D75729
More information about the llvm-commits
mailing list