https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101922
Bug ID: 101922 Summary: mips: illegal instruction at -O3 with -mmsa -mloongson-mmi Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: xry111 at mengyan1223 dot wang Target Milestone: --- $ cat test.c int x = 0xffffffff; char d[16]; void f() { int i; for (i = 0; i < 16; i++) { int t = d[i] >> 8; x &= t; } } $ ~/git-repos/gcc-test-mips/gcc/cc1 test.c -O3 -mmsa -mloongson-mmi -nostdinc $ mips64el-unknown-linux-gnu-as test.s -mmsa -mloongson-mmi -mips64r2 test.s: Assembler messages: test.s:29: Error: operand 3 out of range `srai.b $w0,$w0,8'