在 2025/7/4 上午9:52, Xi Ruoyao 写道:
In GCC 16 the compiler is smarter and it optimizes away the unneeded zero-extension during the expand pass. Thus we can no longer match and_alsl_reversed. Drop the scan-rtl-dump for and_alsl_reversed and add scan-assembler-not against bstrpick.d to detect the unneeded zero-extension in case it regresses in the future. gcc/testsuite/ChangeLog: * gcc.target/loongarch/bstrpick_alsl_paired.c (scan-rtl-dump): Remove. (scan-assembler-not): Make the test fail if the redundant zero-extension is found. --- Tested on loongarch64-linux-gnu. Ok for trunk?
LGTM! Thanks!