1 /* PR inline-asm/84625 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -msse2" } */ 4 5 typedef int V __attribute__((vector_size (16))); 6 7 void foo(void)8foo (void) 9 { 10 asm volatile ("# %0" : : "X" ((V) { 1, 2, 3, 4 })); // { dg-error "invalid vector immediate" } 11 asm volatile ("# %0" : : "" ((V) { 2, 3, 4, 5 })); // { dg-error "invalid vector immediate" } 12 } 13