URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [paired-8.c] - Rev 322
Compare with Previous | Blame | View Log
/* { dg-do compile { target { powerpc-*-linux*paired* && ilp32 } } } */ /* { dg-options "-mpaired -ffinite-math-only " } */ /* Test PowerPC PAIRED extensions. */ #include <paired.h> static float out[2] __attribute__ ((aligned (8))); void test_api (float x) { vector float c = {x, x}; vector float b = {60.0, 88.0}; vector float a; a = paired_sub (b, c); paired_stx (a, 0, out); } int main () { test_api (6); return (0); }