From: Bill Schmidt Date: Wed, 17 Feb 2016 16:23:55 +0000 (+0000) Subject: altivec.md (*altivec_lvxl__internal): Output correct instruction. X-Git-Tag: basepoints/gcc-7~894 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bed93e4655e4d95eb69c0fb6286e178ef89acea;p=thirdparty%2Fgcc.git altivec.md (*altivec_lvxl__internal): Output correct instruction. [gcc] 2016-02-17 Bill Schmidt * config/rs6000/altivec.md (*altivec_lvxl__internal): Output correct instruction. [gcc/testsuite] 2012-02-17 Bill Schmidt * gcc.target/powerpc/vec-cg.c: New test. From-SVN: r233499 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4646617cd57a..aa43b076c392 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-02-17 Bill Schmidt + + * config/rs6000/altivec.md (*altivec_lvxl__internal): Output + correct instruction. + 2016-02-17 Richard Biener PR rtl-optimization/69609 diff --git a/gcc/config/rs6000/altivec.md b/gcc/config/rs6000/altivec.md index d1f6acff9776..9c3084dcb8ba 100644 --- a/gcc/config/rs6000/altivec.md +++ b/gcc/config/rs6000/altivec.md @@ -2511,7 +2511,7 @@ (match_operand:VM2 1 "memory_operand" "Z")) (unspec [(const_int 0)] UNSPEC_SET_VSCR)])] "TARGET_ALTIVEC" - "lvx %0,%y1" + "lvxl %0,%y1" [(set_attr "type" "vecload")]) (define_expand "altivec_lvx_" diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index dcc686457399..ce80cf7f04f0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-02-17 Bill Schmidt + + * gcc.target/powerpc/vec-cg.c: New test. + 2016-02-17 Richard Biener PR testsuite/69586 diff --git a/gcc/testsuite/gcc.target/powerpc/vec-cg.c b/gcc/testsuite/gcc.target/powerpc/vec-cg.c new file mode 100644 index 000000000000..c31d217d880e --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/vec-cg.c @@ -0,0 +1,22 @@ +/* Test code generation of vector built-ins. We don't have this for + most of ours today. As new built-ins are added, please add to this + test case. Update as necessary to add VSX, P8-vector, P9-vector, + etc. */ + +/* { dg-do compile { target powerpc*-*-* } } */ +/* { dg-require-effective-target powerpc_altivec_ok } */ +/* { dg-options "-maltivec -O0" } */ + +#include + +static vector signed int i, *pi; +static int int1; + +void +b() +{ + i = __builtin_altivec_lvxl (int1, pi); + i = vec_lvxl (int1, pi); +} + +/* { dg-final { scan-assembler-times "lvxl" 2 } } */