[PATCH] D110579: [AMDGPU] Add a new intrinsic to control fp_trunc rounding mode
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 9 04:35:41 PST 2022
foad accepted this revision.
foad added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp:2267
+ // Add the Rounding mode as an integer
+ MIB.addImm((int)RoundMode.getValue());
+
----------------
You can also do this on the end of the buildInstr line if you prefer, no need for MIB at all.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110579/new/
https://reviews.llvm.org/D110579
More information about the llvm-commits
mailing list