https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119760

--- Comment #5 from Kishan Parmar <kishan at gcc dot gnu.org> ---
@Steven The Vector Multiply-by-10 Unsigned Quadword instruction appears to be
separate from the other BCD operations. From the ISA description, it is just a
operation (src<<3 + src<<1) on a 128-bit vector, which can be done using
__int128.

But other instructions you mentioned seem to be the decimal convert
from/to National/Zoned formats. Are you suggesting that GCC should also
provide builtins for these conversion instructions, in addition to the
multiply-by-10 operation? And should it be adding bcd modes to gcc or similiar
to how bcd add/sub were added using __int128?

Reply via email to