for-2.c 854 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* { dg-options "-std=gnu99 -fopenmp" } */
  2. extern void abort (void);
  3. #define M(x, y, z) O(x, y, z)
  4. #define O(x, y, z) x ## _ ## y ## _ ## z
  5. #define F simd
  6. #define G simd
  7. #define S
  8. #define N(x) M(x, G, normal)
  9. #include "for-2.h"
  10. #undef S
  11. #undef N
  12. #undef F
  13. #undef G
  14. #define F parallel for simd
  15. #define G pf_simd
  16. #include "for-1.h"
  17. #undef F
  18. #undef G
  19. #undef SC
  20. #define SC static
  21. #define F for simd
  22. #define G f_simd
  23. #include "for-1.h"
  24. #undef F
  25. #undef G
  26. #undef SC
  27. int
  28. main ()
  29. {
  30. if (test_simd_normal ()
  31. || test_pf_simd_static ()
  32. || test_pf_simd_static32 ()
  33. || test_pf_simd_auto ()
  34. || test_pf_simd_guided32 ()
  35. || test_pf_simd_runtime ()
  36. || test_f_simd_static ()
  37. || test_f_simd_static32 ()
  38. || test_f_simd_auto ()
  39. || test_f_simd_guided32 ()
  40. || test_f_simd_runtime ())
  41. abort ();
  42. return 0;
  43. }