gcc/testsuite/gcc.target/i386/movdiri32.c
raw| 1 | /* { dg-do run { target movdir } } */ |
| 2 | /* { dg-options "-mmovdiri -O2" } */ |
| 3 | |
| 4 | #include <x86intrin.h> |
| 5 | |
| 6 | unsigned int dest = -1; |
| 7 | |
| 8 | int |
| 9 | main () |
| 10 | { |
| 11 | if (!__builtin_cpu_supports ("movdiri")) |
| 12 | return 0; |
| 13 | |
| 14 | _directstoreu_u32 (&dest, 0xbadbeef); |
| 15 | |
| 16 | if (dest != 0xbadbeef) |
| 17 | abort (); |
| 18 | |
| 19 | return 0; |
| 20 | } |