MIPS: Fix mode mismatch error between Loongson builtin arguments and insn
authorToma Tabacu <toma.tabacu@imgtec.com>
Tue, 7 Feb 2017 10:34:47 +0000 (10:34 +0000)
committerToma Tabacu <tomtab@gcc.gnu.org>
Tue, 7 Feb 2017 10:34:47 +0000 (10:34 +0000)
commita4166fe55334f1d4e1c2615792fca5b5ebc23eee
treee7dda8125e655d4fbed0778af7368dbd690e6bfe
parentd95c2fc7b304314a03409f6e7cb7f7dd534b10a8
MIPS: Fix mode mismatch error between Loongson builtin arguments and insn
operands.

gcc/

* config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
builtins to SImode and emit a zero-extend, if necessary.

From-SVN: r245243
gcc/ChangeLog
gcc/config/mips/mips.c