Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr92645-5.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-cddce1 -mavx2 -Wno-psabi" } */
3 typedef long long v4di __attribute__((vector_size(32)));
4 struct Vec
5 {
6 unsigned int v[8];
7 };
8
9 v4di pun (struct Vec *s)
10 {
11 v4di tem;
12 __builtin_memcpy (&tem, s, 32);
13 return tem;
14 }
15
16 /* We're expecting exactly two stmts, in particular no BIT_INSERT_EXPR
17 and no memcpy call.
18 _3 = MEM <vector(4) long long int> [(char * {ref-all})s_2(D)];
19 return _3; */
20 /* { dg-final { scan-tree-dump-times " = MEM" 1 "cddce1" } } */
21 /* { dg-final { scan-tree-dump-not "memcpy" "cddce1" } } */