Handle peeling for alignment with masking
[official-gcc.git] / gcc / testsuite / gcc.dg / pr63387.c
blob1f1078483c404c63c2439b79a53fb57269840578
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
4 int f(double aaa, double bbb){
5 int xa = __builtin_isunordered(aaa, aaa);
6 int xb = __builtin_isunordered(bbb, bbb);
7 return xa | xb;
10 int g(double aaa, double bbb){
11 int xa = __builtin_isunordered(aaa, bbb);
12 int xb = __builtin_isunordered(bbb, bbb);
13 return xa | xb;
16 int h(double ccc, float ddd){
17 int xc = __builtin_isunordered(ccc, ccc);
18 int xd = __builtin_isunordered(ddd, ddd);
19 return xc | xd;
22 /* { dg-final { scan-tree-dump-not "aaa\[^\n\r\]* unord aaa" "optimized" } } */
23 /* { dg-final { scan-tree-dump-not "bbb\[^\n\r\]* unord bbb" "optimized" } } */
24 /* { dg-final { scan-tree-dump-times "aaa\[^\n\r\]* unord bbb" 2 "optimized" } } */
25 /* { dg-final { scan-tree-dump-not "ccc\[^\n\r\]* unord ddd" "optimized" } } */