mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 18:05:09 +08:00
*** empty log message ***
From-SVN: r58050
This commit is contained in:
parent
d92b6b949d
commit
0488fa7c8f
@ -1,3 +1,8 @@
|
||||
Fri Oct 11 10:56:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
|
||||
|
||||
* emit-rtl.c (gen_lowpart_common): When asked to make a vector from
|
||||
an integer, use simplify_gen_subreg.
|
||||
|
||||
2002-10-10 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* extend.texi (Vector Extensions): Remove comment about single
|
||||
|
@ -999,6 +999,10 @@ gen_lowpart_common (mode, x)
|
||||
else if (GET_CODE (x) == SUBREG || GET_CODE (x) == REG
|
||||
|| GET_CODE (x) == CONCAT || GET_CODE (x) == CONST_VECTOR)
|
||||
return simplify_gen_subreg (mode, x, GET_MODE (x), offset);
|
||||
else if ((GET_MODE_CLASS (mode) == MODE_VECTOR_INT
|
||||
|| GET_MODE_CLASS (mode) == MODE_VECTOR_FLOAT)
|
||||
&& GET_MODE (x) == VOIDmode)
|
||||
return simplify_gen_subreg (mode, x, int_mode_for_mode (mode), offset);
|
||||
/* If X is a CONST_INT or a CONST_DOUBLE, extract the appropriate bits
|
||||
from the low-order part of the constant. */
|
||||
else if ((GET_MODE_CLASS (mode) == MODE_INT
|
||||
|
@ -1,3 +1,7 @@
|
||||
Fri Oct 11 10:56:49 2002 Richard Shann <richard.shann@superh.com>
|
||||
|
||||
* gcc.c-torture/compile/simd-5.c: New test.
|
||||
|
||||
2002-10-10 Jim Wilson <wilson@redhat.com>
|
||||
|
||||
* gcc.c-torture/execute/20021010-1.c: New test.
|
||||
|
12
gcc/testsuite/gcc.c-torture/compile/simd-5.c
Normal file
12
gcc/testsuite/gcc.c-torture/compile/simd-5.c
Normal file
@ -0,0 +1,12 @@
|
||||
#define vector64 __attribute__((vector_size(8)))
|
||||
|
||||
main(){
|
||||
|
||||
vector64 int c;
|
||||
vector64 int a = {1, -1};
|
||||
vector64 int b = {2, -2};
|
||||
c = -a + b*b*(-1LL);
|
||||
/* c is now {5, 3} */
|
||||
|
||||
printf("result is %llx\n", (long long)c);
|
||||
}
|
Loading…
Reference in New Issue
Block a user