aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/pr99542.c
blob: b67ff5a37a20fdc2791b0aa9254a18d5ac43247e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR middle-end/89246 */
/* { dg-do compile { target int128 } } */
/* { dg-options "-O0 -fopenmp-simd" } */

#pragma omp declare simd
extern int foo (__int128 x);	/* { dg-warning "GCC does not currently support mixed size types for 'simd' function" "" { target aarch64*-*-* } } */
/* { dg-warning "unsupported argument type '__int128' for simd" "" { target i?86-*-* x86_64-*-* } .-1 } */

#pragma omp declare simd uniform (x)
extern int baz (__int128 x);

#pragma omp declare simd
int
bar (int x)
{
  return x + foo (0) + baz (0);
}