1# This test reportedly fails on all 64-bit targets, see PR6221.  It's
2# been observed to fail on at least mips-irix6, alpha, ia64, hppa64,
3# sparc64/sparcv9 and mmix during April 2002.
4
5if { [istarget "sparc64-*-*"] || [istarget "sparcv9-*-*"] } {
6    # On sparc64/sparcv9 it doesn't fail at -O0/-O1, or at all with -m32.
7    set torture_eval_before_execute {
8        global compiler_conditional_xfail_data
9        set compiler_conditional_xfail_data {
10            "This test fails on 64-bit targets, see PR6221." \
11            { "*-*-*" } \
12            { "-O2" "-O3" "-Os" } \
13            { "-m32" }
14        }
15    }
16} elseif { [istarget "sparc-*-*"] } {
17    # Regular sparc fails with -m64, but not with -O0/-O1.
18    set torture_eval_before_execute {
19        global compiler_conditional_xfail_data
20        set compiler_conditional_xfail_data {
21            "This test fails on 64-bit targets, see PR6221." \
22            { "*-*-*" } \
23            { "-m64" } \
24            { "-O0" "-O1" }
25        }
26    }
27} elseif { [istarget "powerpc64-*-*"] } {
28    # PowerPC-64 doesn't fail at any optimization level.
29} elseif { [istarget "*64*-*-*"] || [istarget "alpha*-*-*"]
30        || [istarget "mmix-*-*"] || [istarget "mips*-*-irix6*"] } {
31    # Other 64-bit targets fail at all optimization levels.
32    set torture_execute_xfail [istarget]
33}
34
35return 0
36