1/* { dg-do compile { target { powerpc-*-linux*paired* && ilp32} } } */ 2/* { dg-options "-mpaired -ffinite-math-only " } */ 3 4/* Test PowerPC PAIRED extensions. */ 5 6#include <paired.h> 7 8static float in1[2] __attribute__ ((aligned (8))) = 9{6.0, 7.0}; 10static float in2[2] __attribute__ ((aligned (8))) = 11{4.0, 3.0}; 12 13static float out[2] __attribute__ ((aligned (8))); 14 15vector float a, b, c, d; 16void 17test_api () 18{ 19 b = paired_lx (0, in1); 20 c = paired_lx (0, in2); 21 22 a = paired_sub (b, c); 23 24 paired_stx (a, 0, out); 25} 26 27int 28main () 29{ 30 test_api (); 31 return (0); 32} 33 34