diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr36997.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr36997.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr36997.c b/gcc/testsuite/gcc.dg/pr36997.c new file mode 100644 index 00000000000..34ee54a6827 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr36997.c @@ -0,0 +1,8 @@ +/* { dg-do compile { target x86_64-*-* i?86-*-* } } */ +/* { dg-options "-std=c99" } */ + +typedef int __m64 __attribute__ ((__vector_size__ (8), __may_alias__)); +__m64 _mm_add_si64 (__m64 __m1, __m64 __m2) +{ + return (__m64) __builtin_ia32_paddq ((long long)__m1, (long long)__m2); /* { dg-error "incompatible type" } */ +} |