repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Let ldist ignore clobbers
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tree-ssa
/
ldist-1.C
blob
0fc6a61f0b808b070e65374a6bf68de47025fe79
1
/* { dg-do compile } */
2
/* { dg-options "-O3 -fdump-tree-ldist-details" } */
3
4
#include <new>
5
struct T {
6
int* p;
7
T(T const&t):p(t.p){}
8
};
9
void f(T*__restrict a,T*__restrict b){
10
for(int i=0;i<1024;++i){
11
new(a+i)T(b[i]);
12
b[i].~T();
13
}
14
}
15
16
/* { dg-final { scan-tree-dump "generated memcpy" "ldist" } } */