https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94591
Bug ID: 94591 Summary: [8/9/10 Regression] Assembler messages: Error: operand mismatch -- `rev64 v0.2d,v0.2d' Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: assemble-failure Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: aarch64-unknown-linux-gnu Created attachment 48266 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48266&action=edit reduced testcase Compiler output: $ aarch64-unknown-linux-gnu-gcc testcase.c /tmp/ccPr88U5.s: Assembler messages: /tmp/ccPr88U5.s:13: Error: operand mismatch -- `rev64 v0.2d,v0.2d' /tmp/ccPr88U5.s:13: Info: did you mean this? /tmp/ccPr88U5.s:13: Info: rev64 v0.8b, v0.8b /tmp/ccPr88U5.s:13: Info: other valid variant(s): /tmp/ccPr88U5.s:13: Info: rev64 v0.16b, v0.16b /tmp/ccPr88U5.s:13: Info: rev64 v0.4h, v0.4h /tmp/ccPr88U5.s:13: Info: rev64 v0.8h, v0.8h /tmp/ccPr88U5.s:13: Info: rev64 v0.2s, v0.2s /tmp/ccPr88U5.s:13: Info: rev64 v0.4s, v0.4s According to https://developer.arm.com/docs/dui0801/latest/a64-simd-vector-instructions/rev64-vector , the operand is invalid. $ aarch64-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r10-7709-20200413231231-g7eee265e6bd-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/10.0.1/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --with-cloog --with-ppl --with-isl --with-sysroot=/usr/aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu --with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld --with-as=/usr/bin/aarch64-unknown-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r10-7709-20200413231231-g7eee265e6bd-checking-yes-rtl-df-extra-aarch64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.0.1 20200414 (experimental) (GCC)