summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/spe1.c
blob: ddbb5a6e1c95e012a508c96e99b09f7aa030dac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-mcpu=8540 -mspe -mabi=spe -mfloat-gprs=single -O0" } */
/* { dg-skip-if "not an SPE target" { ! powerpc_spe_nocache } { "*" } { "" } } */

/* (Test with -O0 so we don't optimize any of them away).  */


typedef float __attribute__((vector_size(8))) __ev64_fs__;

__ev64_opaque__ Foo (void);

void Bar ()
{
  __ev64_fs__ fs = Foo ();
}