[PATCH] D51925: [AMDGPU] Fix issue for zext of f16 to i32

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 11 05:29:36 PDT 2018


arsenm added inline comments.


================
Comment at: lib/Target/AMDGPU/SIInstructions.td:1353
+def : GCNPat <
+  (i32 (AMDGPUfp16_zext f16:$src)),
+  (V_AND_B32_e64 $src, (V_MOV_B32_e32 (i32 0x0000ffff)))
----------------
IIRC this node is only supposed to be emitted if the high bits are known zero, so something is wrong upstream if it’s gotten here 


Repository:
  rL LLVM

https://reviews.llvm.org/D51925





More information about the llvm-commits mailing list