[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / dive-vectorize-1.h
blob119f637b46b667975ee542aaa31cafcc9c30f691
1 #define N 128
3 typedef signed int si;
4 typedef unsigned int ui;
6 si si_a[N], si_b[N], si_c[N];
7 ui ui_a[N], ui_b[N], ui_c[N];
9 __attribute__ ((noipa)) void
10 test_divwe ()
12 for (int i = 0; i < N; i++)
13 si_c[i] = __builtin_divwe (si_a[i], si_b[i]);
16 __attribute__ ((noipa)) void
17 test_divweu ()
19 for (int i = 0; i < N; i++)
20 ui_c[i] = __builtin_divweu (ui_a[i], ui_b[i]);