Debian Codegraph @

gcc/testsuite/gcc.target/i386/movrs-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mmovrs -O2" } */
3 /* { dg-final { scan-assembler-times "movrsb\[ \\t\]\+\\(%(?:r|e).x\\), %.l" 1 { target { ! ia32 } } } } */
4 /* { dg-final { scan-assembler-times "movrsw\[ \\t\]\+\\(%(?:r|e).x\\), %.x" 1 { target { ! ia32 } } } } */
5 /* { dg-final { scan-assembler-times "movrsl\[ \\t\]\+\\(%(?:r|e).x\\), %e.x" 1 { target { ! ia32 } } } } */
6 /* { dg-final { scan-assembler-times "movrsq\[ \\t\]\+\\(%(?:r|e).x\\), %r.x" 1 { target { ! ia32 } } } } */
7 /* { dg-final { scan-assembler-times "prefetchrst2\[ \\t\]" 1 } } */
8
9
10 #include <immintrin.h>
11
12 volatile char x1;
13 volatile short x2;
14 volatile int x3;
15 volatile long long x4;
16 char * p1;
17 short * p2;
18 int * p3;
19 long long * p4;
20
21
22 void extern
23 movrs_test (void)
24 {
25 _m_prefetchrs (p1);
26 #ifdef __x86_64__
27 x1 = _movrs_i8 (p1);
28 x2 = _movrs_i16 (p2);
29 x3 = _movrs_i32 (p3);
30 x4 = _movrs_i64 (p4);
31 #endif
32 }