1# Copyright (C) 2012-2014 Free Software Foundation, Inc. 2 3# This program is free software; you can redistribute it and/or modify 4# it under the terms of the GNU General Public License as published by 5# the Free Software Foundation; either version 3 of the License, or 6# (at your option) any later version. 7# 8# This program is distributed in the hope that it will be useful, 9# but WITHOUT ANY WARRANTY; without even the implied warranty of 10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11# GNU General Public License for more details. 12# 13# You should have received a copy of the GNU General Public License 14# along with this program; if not, write to the Free Software 15# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. 16 17if [istarget z8k-*-*] then { 18 19# EI/DI test 20 21 gas_test "eidi.s" "" "" "EI/DI operands" 22 gas_test_error "eidif.s" "" "EI/DI operands" 23 24# pcrel range test 25 26 gas_test_error "jr-forwf.s" "" "relative jump out of range (jr)" 27 gas_test_error "jr-backf.s" "" "relative jump out of range (jr)" 28 gas_test_error "djnz-backf.s" "" "relative jump out of range (djnz)" 29 gas_test_error "djnz-backf2.s" "" "relative jump out of range (djnz)" 30 gas_test_error "calr-forwf.s" "" "relative jump out of range (calr)" 31 gas_test_error "calr-backf.s" "" "relative jump out of range (calr)" 32 33# 4 bit argument tests 34 35 gas_test_error "incf.s" "" "immediate 4bit value out of range" 36 gas_test_error "decf.s" "" "immediate 4bit value out of range" 37 gas_test_error "incbf.s" "" "immediate 4bit value out of range" 38 gas_test_error "decbf.s" "" "immediate 4bit value out of range" 39 gas_test_error "ldkf.s" "" "immediate 4bit value out of range" 40 gas_test "inc.s" "" "" "immediate 4bit value" 41 gas_test "dec.s" "" "" "immediate 4bit value" 42 gas_test "ldk.s" "" "" "immediate 4bit value" 43 44# in/out opcodes test 45 46 run_dump_test "inout" 47 48# pcrel tests 49 50 run_dump_test "jr-forw" 51 run_dump_test "jr-back" 52 run_dump_test "djnz" 53 run_dump_test "calr" 54 55# condition code tests 56 57 run_dump_test "jmp-cc" 58 run_dump_test "ret-cc" 59 60# ctrl names test 61 62 run_dump_test "ctrl-names" 63 64# labels starting with register names test 65 66 run_dump_test "reglabel" 67 68# translate operations 69 70 run_dump_test "translate-ops" 71} 72