[PATCH] D144729: [AMDGPU] Select v_sat_pk_u8_i16
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 30 01:47:24 PDT 2023
foad added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIInstructions.td:2931
+ def: GCNPat<
+ (v2i16 (DivergentBinFrag<build_vector> (clamp_s16_u8 i16:$lo), (clamp_s16_u8 i16:$hi))),
+ (inst
----------------
Looking at this again, I don't think these patterns match what the instruction does. The instruction puts the two 8-bit results in bits [15..8] and [7..0], not in bits [23..16] and [7..0].
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144729/new/
https://reviews.llvm.org/D144729
More information about the llvm-commits
mailing list