20001226-1.x: Only xfail for Xtensa targets if not optimizing.
authorBob Wilson <bob.wilson@acm.org>
Tue, 11 Jun 2002 03:38:32 +0000 (03:38 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Tue, 11 Jun 2002 03:38:32 +0000 (03:38 +0000)
        * gcc.c-torture/compile/20001226-1.x: Only xfail for Xtensa
        targets if not optimizing.

From-SVN: r54481

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20001226-1.x

index d2c3fbd9f54efcf4ab304cff16d4da306fe10eb2..4ef50fab73eca8cca63ae1afa16b283466dad4a0 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-10  Bob Wilson  <bob.wilson@acm.org>
+
+       * gcc.c-torture/compile/20001226-1.x: Only xfail for Xtensa
+       targets if not optimizing.
+
 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
 
        * gcc.c-torture/compile/20020605-1.c: New test.
index 9cee14782fae8c7753cf708509dc7cb0f4b3f2e8..13616c69f3742decb8246eccd54fa74a031d4393 100644 (file)
@@ -1,12 +1,22 @@
 # This does not assemble on m68hc11 because the function is larger
 # than 64K.
 
+global target_triplet
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] } {
+      set torture_compile_xfail "$target_triplet"
+}
+
 # It doesn't work on Xtensa with -O0 because the function is larger
 # than the range of a jump instruction (+- 128K) and the assembler
 # does not yet relax jumps to indirect jumps.
 
-global target_triplet
-if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"] || [istarget "xtensa-*-*"]} {
-      set torture_compile_xfail "$target_triplet"
+set torture_eval_before_compile {
+    set compiler_conditional_xfail_data {
+        "jump beyond 128K not supported" \
+        "xtensa-*-*" \
+        { "-O0" } \
+        { "" }
+    }
 }
+
 return 0