2012-02-02 Jia Liu <proljc@gmail.com>
* config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
than operand 2.
gcc/testsuite/
* gcc.target/mips/mips-prepend-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183841
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-02-02 Jia Liu <proljc@gmail.com>
+
+ * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
+ than operand 2.
+
2012-02-02 Jan Hubicka <jh@suse.cz>
Tom de Vries <tom@codesourcery.com>
"ISA_HAS_DSPR2"
{
if (INTVAL (operands[3]) & ~(unsigned HOST_WIDE_INT) 31)
- operands[2] = GEN_INT (INTVAL (operands[2]) & 31);
+ operands[3] = GEN_INT (INTVAL (operands[3]) & 31);
return "prepend\t%0,%z2,%3";
}
[(set_attr "type" "arith")
+2012-02-02 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * gcc.target/mips/mips-prepend-1.c: New test.
+
2012-02-02 Jan Hubicka <jh@suse.cz>
Tom de Vries <tom@codesourcery.com>
--- /dev/null
+/* { dg-options "-mdspr2" } */
+/* { dg-final { scan-assembler "prepend\[^\n\]*,10" } } */
+
+NOMIPS16 int
+foo (int x, int y)
+{
+ return __builtin_mips_prepend (x, y, 42);
+}