gcc/testsuite/gcc.target/aarch64/sve/pr116238.c
raw| 1 | /* { dg-additional-options "-O2 -msve-vector-bits=128" } */ |
| 2 | |
| 3 | void foo(); |
| 4 | typedef unsigned char v2qi __attribute__((vector_size(2))); |
| 5 | void f(v2qi *ptr) |
| 6 | { |
| 7 | v2qi x = *ptr; |
| 8 | asm volatile ("" :: "w" (x)); |
| 9 | asm volatile ("" ::: "d8", "d9", "d10", "d11", "d12", "d13", "d14", "d15"); |
| 10 | foo(); |
| 11 | asm volatile ("" :: "w" (x)); |
| 12 | *ptr = x; |
| 13 | } |