mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
Don't force_reg operands[3] when it's not const0_rtx.
It fix the regression bya51f2fc0d8
is the first bad commit commita51f2fc0d8
Author: liuhongt <hongtao.liu@intel.com> Date: Wed Sep 4 15:39:17 2024 +0800 Handle const0_operand for *avx2_pcmp<mode>3_1. caused FAIL: gcc.target/i386/pr59539-1.c scan-assembler-times vmovdqu|vmovups 1 To reproduce: $ cd {build_dir}/gcc && make check RUNTESTFLAGS="i386.exp=gcc.target/i386/pr59539-1.c --target_board='unix{-m32\ -march=cascadelake}'" $ cd {build_dir}/gcc && make check RUNTESTFLAGS="i386.exp=gcc.target/i386/pr59539-1.c --target_board='unix{-m64\ -march=cascadelake}'" gcc/ChangeLog: * config/i386/sse.md (*avx2_pcmp<mode>3_1): Don't force_reg operands[3] when it's not const0_rtx.
This commit is contained in:
parent
852cff8268
commit
c726a66431
@ -17929,7 +17929,8 @@
|
||||
if (INTVAL (operands[5]) == 1)
|
||||
std::swap (operands[3], operands[4]);
|
||||
|
||||
operands[3] = force_reg (<MODE>mode, operands[3]);
|
||||
if (operands[3] == CONST0_RTX (<MODE>mode))
|
||||
operands[3] = force_reg (<MODE>mode, operands[3]);
|
||||
if (operands[4] == CONST0_RTX (<MODE>mode))
|
||||
operands[4] = force_reg (<MODE>mode, operands[4]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user