Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr103905.c

raw
1 /* PR target/103905 */
2 /* { dg-do run } */
3 /* { dg-require-effective-target xop } */
4 /* { dg-options "-O3 -mxop" } */
5
6 #include "xop-check.h"
7
8 char perm[64];
9
10 void
11 __attribute__((noipa))
12 foo (int n)
13 {
14 for (int i = 0; i < n; ++i)
15 perm[i] = i;
16 }
17
18 static void
19 xop_test (void)
20 {
21 foo (8);
22
23 if (perm[7] != 7)
24 __builtin_abort ();
25 }