[PATCH][AARCH64]Use shl for vec_shr_<mode> rtx pattern.

Renlin Li renlin.li@arm.com
Tue Apr 28 16:01:00 GMT 2015


Hi all,

unsigned shift left dosen't support immediate shift. Previouly, gcc will 
generate asm instruction like this: "ushl d1, d0, 32", which is not a 
legal insn and will be rejected by assembler. This patch change the use 
of ushl in vec_shr_<mode> into shl.

A test case is added, and it passes on both aarch64-none-elf and 
aarch64_be-none-elf tool-chain.

Okay to commit?

Regards,
Renlin Li

gcc/ChangeLog:

2015-04-28  Renlin Li  <renlin.li@arm.com>

     * config/aarch64/aarch64-simd.md (vec_shr_<mode>): Use shl.

gcc/testsuite/ChangeLog:

2015-04-28  Renlin Li  <renlin.li@arm.com>
                     Alan Lawrence  <alan.lawrence@arm.com>

     * gcc.target/aarch64/vect-reduc-or_1.c: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.diff
Type: text/x-patch
Size: 1436 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150428/dff9b82c/attachment.bin>


More information about the Gcc-patches mailing list