aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/981130-1.x
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/execute/981130-1.x')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/execute/981130-1.x22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/981130-1.x b/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/981130-1.x
new file mode 100644
index 000000000..1565c68ad
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/981130-1.x
@@ -0,0 +1,22 @@
+# This test is known to fail on targets that use the instruction scheduler
+# at optimisation levels of 2 or more because the alias analysis is confused
+# by the reassignment of a variable structure to a fixed structure. The
+# failure could be suppressed by preventing instruction scheduling:
+#
+# set additional_flags "-fno-schedule-insns2";
+#
+# but this would disguise the fact that there is a problem. Instead we use
+# we generate an xfail result and explain that it is alias analysis that
+# is at fault.
+
+set torture_eval_before_execute {
+
+ set compiler_conditional_xfail_data {
+ "alias analysis conflicts with instruction scheduling" \
+ "m32r-*-*" \
+ { "-O2" "-O1" "-O0" "-Os"} \
+ { "" }
+ }
+}
+
+return 0