aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20020227-1.x
blob: 72adedff8657fd8c67efbd0b86cc64ad1c03a3aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This test reportedly fails on all 64-bit targets, see PR6221.  It's
# been observed to fail on at least mips-irix6, alpha, ia64, hppa64,
# sparc64/sparcv9 and mmix during April 2002.

if { [istarget "sparc64-*-*"] || [istarget "sparcv9-*-*"] } {
    # On sparc64/sparcv9 it doesn't fail at -O0/-O1, or at all with -m32.
    set torture_eval_before_execute {
        global compiler_conditional_xfail_data
        set compiler_conditional_xfail_data {
            "This test fails on 64-bit targets, see PR6221." \
            { "*-*-*" } \
            { "-O2" "-O3" "-Os" } \
            { "-m32" }
        }
    }
} elseif { [istarget "sparc-*-*"] } {
    # Regular sparc fails with -m64, but not with -O0/-O1.
    set torture_eval_before_execute {
        global compiler_conditional_xfail_data
        set compiler_conditional_xfail_data {
            "This test fails on 64-bit targets, see PR6221." \
            { "*-*-*" } \
            { "-m64" } \
            { "-O0" "-O1" }
        }
    }
} elseif { [istarget "powerpc64-*-*"] } {
    # PowerPC-64 doesn't fail at any optimization level.
} elseif { [istarget "*64*-*-*"] || [istarget "alpha*-*-*"]
        || [istarget "mmix-*-*"] || [istarget "mips*-*-irix6*"] } {
    # Other 64-bit targets fail at all optimization levels.
    set torture_execute_xfail [istarget]
}

return 0