aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/scfi/aarch64/scfi-aarch64.exp
blob: 332e6b911015f9ba22a0c477e6c312efe36458fe (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright (C) 2022-2023 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.

if { ![is_elf_format] } then {
    return
}

# common tests
if  { ([istarget "aarch64-*-*"]) } then {

    global ASFLAGS
    set old_ASFLAGS "$ASFLAGS"

    run_list_test "ginsn-arith-1" "--scfi=experimental -ali --warn"
    run_list_test "ginsn-cofi-1" "--scfi=experimental -ali --warn"
    run_list_test "ginsn-ldst-1" "--scfi=experimental -ali --warn"
    run_list_test "ginsn-misc-1" "--scfi=experimental -ali --warn"

    run_list_test "scfi-diag-1" "--scfi=experimental"
    run_list_test "scfi-diag-2" "--scfi=experimental"

    run_list_test "scfi-unsupported-1" "--scfi=experimental"

    run_dump_test "scfi-ldrp-1"
    run_list_test "scfi-ldrp-1" "--scfi=experimental --warn"
    run_dump_test "scfi-ldrp-2"
    run_list_test "scfi-ldrp-2" "--scfi=experimental --warn"

    run_dump_test "scfi-strp-1"
    run_list_test "scfi-strp-1" "--scfi=experimental --warn"
    run_dump_test "scfi-strp-2"
    run_list_test "scfi-strp-2" "--scfi=experimental --warn"

    run_dump_test "scfi-cb-1"
    run_list_test "scfi-cb-1" "--scfi=experimental --warn"
    run_dump_test "scfi-cond-br-1"
    run_list_test "scfi-cond-br-1" "--scfi=experimental --warn"

    run_dump_test "scfi-cfg-1"
    run_list_test "scfi-cfg-1" "--scfi=experimental --warn"

    run_dump_test "scfi-cfg-2"
    run_list_test "scfi-cfg-2" "--scfi=experimental --warn"

    run_dump_test "scfi-cfg-3"
    run_list_test "scfi-cfg-3" "--scfi=experimental --warn"

    run_dump_test "scfi-cfg-4"
    run_list_test "scfi-cfg-4" "--scfi=experimental --warn"

}