diff options
author | Julian Brown <julian@codesourcery.com> | 2011-05-05 16:56:56 +0000 |
---|---|---|
committer | Julian Brown <jules@gcc.gnu.org> | 2011-05-05 16:56:56 +0000 |
commit | e69c016cd88a73f451289f25cae2c5c054033d32 (patch) | |
tree | 12920f30b3e18ac603359580e7f0fcf2111d8013 | |
parent | 981c7fa83ce4203f929d48bf4bb061c4581d8e37 (diff) | |
download | gcc-e69c016cd88a73f451289f25cae2c5c054033d32.tar.gz |
neon.md (vec_set<mode>_internal): Fix misplaced parenthesis in D-register case.
gcc/
* config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
parenthesis in D-register case.
gcc/testsuite/
* gcc.target/arm/neon-vset_lanes8.c: New test.
From-SVN: r173447
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/arm/neon.md | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/neon-vset_lanes8.c | 21 |
4 files changed, 31 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 69796fcb2a4..dbff120873d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-05-05 Julian Brown <julian@codesourcery.com> + + * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced + parenthesis in D-register case. + 2011-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> Backport from mainline: diff --git a/gcc/config/arm/neon.md b/gcc/config/arm/neon.md index 0c312e7c336..4c96cacd253 100644 --- a/gcc/config/arm/neon.md +++ b/gcc/config/arm/neon.md @@ -735,7 +735,7 @@ (match_operand:SI 2 "immediate_operand" "i")))] "TARGET_NEON" { - operands[2] = GEN_INT (ffs ((int) INTVAL (operands[2]) - 1)); + operands[2] = GEN_INT (ffs ((int) INTVAL (operands[2])) - 1); return "vmov%?.<V_uf_sclr>\t%P0[%c2], %1"; } diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bc670dc75ec..155f66b1dbf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-05-05 Julian Brown <julian@codesourcery.com> + + * gcc.target/arm/neon-vset_lanes8.c: New test. + 2009-02-18 H.J. Lu <hongjiu.lu@intel.com> PR c++/39219 diff --git a/gcc/testsuite/gcc.target/arm/neon-vset_lanes8.c b/gcc/testsuite/gcc.target/arm/neon-vset_lanes8.c new file mode 100644 index 00000000000..e87102edbe2 --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/neon-vset_lanes8.c @@ -0,0 +1,21 @@ +/* Test the `vset_lane_s8' ARM Neon intrinsic. */ + +/* { dg-do run } */ +/* { dg-require-effective-target arm_neon_hw } */ +/* { dg-options "-O0" } */ +/* { dg-add-options arm_neon } */ + +#include "arm_neon.h" +#include <stdlib.h> +#include <string.h> + +int8x8_t x = { 1, 2, 3, 4, 5, 6, 7, 8 }; +int8x8_t y = { 1, 2, 3, 16, 5, 6, 7, 8 }; + +int main (void) +{ + x = vset_lane_s8 (16, x, 3); + if (memcmp (&x, &y, sizeof (x)) != 0) + abort(); + return 0; +} |