free (c);
}
-/* { dg-final { scan-tree-dump-times "(?n)= 0;$" 2 "optimized" } } */
+/* XFAIL: see PR middle-end/95622; fails if ENABLE_OFFLOAD is set. */
+/* { dg-final { scan-tree-dump-times "(?n)= 0;$" 2 "optimized" { xfail offloading_enabled } } } */
/* { dg-final { scan-tree-dump-times "(?n)= 1;$" 1 "optimized" } } */
/* { dg-final { scan-tree-dump-times "(?n)= \\*a" 0 "optimized" } } */
}
}
-/* { dg-final { scan-tree-dump-times "(?n)= 0;$" 2 "optimized" } } */
+/* XFAIL: see PR middle-end/95622; fails if ENABLE_OFFLOAD is set. */
+/* { dg-final { scan-tree-dump-times "(?n)= 0;$" 2 "optimized" { xfail offloading_enabled } } } */
/* { dg-final { scan-tree-dump-times "(?n)= 1;$" 1 "optimized" } } */
-/* { dg-final { scan-tree-dump-times "(?n)= \\*_\[0-9\];$" 0 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "(?n)= \\*_\[0-9\];$" 0 "optimized" { xfail offloading_enabled } } } */
}
}
-/* { dg-final { scan-tree-dump-times "(?n)= 0;$" 2 "optimized" } } */
+/* XFAIL: see PR middle-end/95622; fails if ENABLE_OFFLOAD is set. */
+/* { dg-final { scan-tree-dump-times "(?n)= 0;$" 2 "optimized" { xfail offloading_enabled } } } */
/* { dg-final { scan-tree-dump-times "(?n)= 1;$" 1 "optimized" } } */
/* { dg-final { scan-tree-dump-times "(?n)= \\*_\[0-9\]\\\[0\\\];$" 0 "optimized" } } */
} "-O1 -fgraphite"]
}
+# Return 1 if compiled with --enable-offload-targets=
+# This affects host compilation as ENABLE_OFFLOAD then evaluates to true.
+proc check_effective_target_offloading_enabled {} {
+ return [check_configured_with "--enable-offload-targets"]
+}
+
# Return 1 if compilation with -fopenacc is error-free for trivial
# code, 0 otherwise.