rs6000: Change optab for ibm128 and ieee128 conversion
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / no-redundant-instrumentation-3.c
blob6432236c2bb671328ac53ba270a7dad2c5d922a9
1 /* { dg-options "-fdump-tree-sanopt" } */
2 /* { dg-do compile } */
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */
5 char
6 foo (__INT32_TYPE__ *p)
8 /* This generates a __builtin___asan_report_load1. */
9 __INT32_TYPE__ ret = *(char *) p;
10 /* This generates a __builtin___asan_report_store4 depending on the. */
11 *p = 26;
12 return ret;
15 /* { dg-final { scan-tree-dump-times "__builtin___asan_report" 2 "sanopt" } } */
16 /* { dg-final { scan-tree-dump-times "__builtin___asan_report_load1" 1 "sanopt" } } */
17 /* { dg-final { scan-tree-dump-times "__builtin___asan_report_store" 1 "sanopt" } } */