blob: 11d86f09d1217aba62df5aea7f53ba11350490fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* { dg-do compile } */
/* { dg-skip-if "Test is specific to the iWMMXt" { arm*-*-* } { "-mcpu=*" } { "-mcpu=iwmmxt" } } */
/* { dg-skip-if "Test is specific to the iWMMXt" { arm*-*-* } { "-mabi=*" } { "-mabi=iwmmxt" } } */
/* { dg-skip-if "Test is specific to the iWMMXt" { arm*-*-* } { "-march=*" } { "-march=iwmmxt" } } */
/* { dg-skip-if "Test is specific to ARM mode" { arm*-*-* } { "-mthumb" } { "" } } */
/* { dg-require-effective-target arm32 } */
/* { dg-require-effective-target arm_iwmmxt_ok } */
/* { dg-options "-O3 -mcpu=iwmmxt" } */
typedef signed char V __attribute__((vector_size (8)));
void
foo (V *a)
{
*a = *a * 3;
}
typedef signed short Vshort __attribute__((vector_size (8)));
void
foo_short (Vshort *a)
{
*a = *a * 3;
}
typedef signed int Vint __attribute__((vector_size (8)));
void
foo_int (Vint *a)
{
*a = *a * 3;
}
|