https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110926
--- Comment #6 from Hongtao.liu <crazylht at gmail dot com> --- (In reply to Hongtao.liu from comment #5) > I'm working on a patch. int -vpternlog_redundant_operand_mask (rtx *operands) +vpternlog_redundant_operand_mask (rtx op_mask) { int mask = 0; - int imm8 = XINT (operands[4], 0); + int imm8 = INTVAL (op_mask); We should use INTVAL instead of XINT.