gcc/testsuite/gcc.target/i386/pr96744-4.c
raw| 1 | /* { dg-do compile { target ia32 } } */ |
| 2 | /* { dg-options "-msse2" } */ |
| 3 | |
| 4 | typedef int int32x4_t __attribute__ ((__vector_size__ ((16)))); |
| 5 | |
| 6 | __attribute__((__target__("general-regs-only"))) |
| 7 | int32x4_t |
| 8 | test (int32x4_t a, int32x4_t b) /* { dg-warning "SSE vector argument without SSE enabled" } */ |
| 9 | { /* { dg-warning "SSE vector return without SSE enabled" } */ |
| 10 | return a + b; |
| 11 | } |