[PATCH] D152710: AMDGPU: Implement llvm.get.fpenv.ll
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 12 10:36:12 PDT 2023
rampitec added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SOPInstructions.td:886
+// known may read MODE and only read MODE.
+def S_GETREG_B32 : SOPK_Pseudo < "s_getreg_b32", (outs SReg_32:$sdst),
+ (ins hwreg:$simm16), "$sdst, $simm16", [(set i32:$sdst,
----------------
Old formatting was more readable.
================
Comment at: llvm/test/CodeGen/AMDGPU/llvm.get.fpenv.ll:169
+; GFX678-NEXT: s_and_b32 s4, 0x7f3ff, s4
+; GFX678-NEXT: s_and_b32 s4, s4, 0xf0
+; GFX678-NEXT: v_mov_b32_e32 v0, s4
----------------
These 2 ands can be simplified.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152710/new/
https://reviews.llvm.org/D152710
More information about the llvm-commits
mailing list