Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr109458.c

raw
1 /* PR target/109458 */
2 /* { dg-do compile } */
3 /* { dg-options "-msse2" } */
4
5 void
6 foo (_Float16 x)
7 {
8 asm volatile ("# %z0" : : "i" (42)); /* { dg-error "invalid 'asm': invalid operand type used with operand code 'z'" } */
9 asm volatile ("# %Z0" : : "i" (42)); /* { dg-error "invalid 'asm': invalid operand type used with operand code 'Z'" } */
10 asm volatile ("# %z0" : : "x" (x)); /* { dg-error "invalid 'asm': invalid operand size for operand code 'z'" } */
11 /* { dg-warning "non-integer operand used with operand code 'z'" "" { target *-*-* } .-1 } */
12 asm volatile ("# %Z0" : : "x" (x)); /* { dg-error "invalid 'asm': invalid operand size for operand code 'Z'" } */
13 }