From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1035) id 8587B398BFF8; Thu, 6 Jun 2024 15:21:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8587B398BFF8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1717687280; bh=MNcak5/LLWq+4bQdRxAdnyywKbSciYFAkQ5P2S5KETM=; h=From:To:Subject:Date:From; b=HkGjsz+2bc9F102BwdyLh4Lyp408JuKdWXaTbnQifc35LgFzY28c4JDf9yQfVXmwe QMqsU9Rb+n3dFdrUx3ohtz5a1grs/ULAOs62fxsfzD0sMo6ciaL3N3a4tgbyQoLJFP mVkWRpvQp3Cp6RRP9LgDVDH8MO+wakFey4IHglko= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Richard Earnshaw To: binutils-cvs@sourceware.org Subject: [binutils-gdb] arm: fix testsuite fallout on arm-elf and arm-nto from FPA removal X-Act-Checkin: binutils-gdb X-Git-Author: Richard Earnshaw X-Git-Refname: refs/heads/master X-Git-Oldrev: 6ba072193126c833c4742e7dd5dfb6cff4b4ef18 X-Git-Newrev: 01469ac03e0673d40f8372d5e89139f86327e658 Message-Id: <20240606152120.8587B398BFF8@sourceware.org> Date: Thu, 6 Jun 2024 15:21:20 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D01469ac03e06= 73d40f8372d5e89139f86327e658 commit 01469ac03e0673d40f8372d5e89139f86327e658 Author: Richard Earnshaw Date: Thu Jun 6 15:55:16 2024 +0100 arm: fix testsuite fallout on arm-elf and arm-nto from FPA removal =20 Removing FPA means that in some cases we default to 'no-fpu' in the assembler when previously we would have picked FPA-format floating numbers. This patch fixes the testsuite fallout on a couple of targets that are affected by this change. Where possible we do this by adding an option to set the floating-point format, but for bad-bss we just skip the test. Diff: --- gas/testsuite/gas/all/gas.exp | 4 +++- gas/testsuite/gas/arm/float16-eabi-alternative-format.d | 2 +- gas/testsuite/gas/arm/float16-eabi-ieee-format.d | 2 +- gas/testsuite/gas/arm/float16-eabi-no-format.d | 1 + gas/testsuite/gas/elf/bad-bss.d | 1 + 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp index af461b1988d..3a922636302 100644 --- a/gas/testsuite/gas/all/gas.exp +++ b/gas/testsuite/gas/all/gas.exp @@ -47,7 +47,9 @@ if { ![istarget cris-*-*] && ![istarget crisv32-*-*] && ![istarget z80-*-*] } then { if { [istarget tic4x-*-*] } then { set as_opt "" - } elseif { [istarget arm*-*-pe ] } then { + } elseif { [istarget arm*-*-pe ] + || [istarget arm*-*-elf] + || [istarget arm*-*-nto*] } then { set as_opt "--defsym hasnan=3D1 -mfpu=3Dsoftvfp" } else { set as_opt "--defsym hasnan=3D1" diff --git a/gas/testsuite/gas/arm/float16-eabi-alternative-format.d b/gas/= testsuite/gas/arm/float16-eabi-alternative-format.d index 0729a5ccc21..54636a481ed 100644 --- a/gas/testsuite/gas/arm/float16-eabi-alternative-format.d +++ b/gas/testsuite/gas/arm/float16-eabi-alternative-format.d @@ -2,7 +2,7 @@ # readelf: -A # notarget: *-*pe *-*-wince # source: float16-eabi.s -# as: -mfp16-format=3Dalternative +# as: -mfp16-format=3Dalternative -mfpu=3Dsoftvfp Attribute Section: aeabi File Attributes Tag_ARM_ISA_use: Yes diff --git a/gas/testsuite/gas/arm/float16-eabi-ieee-format.d b/gas/testsui= te/gas/arm/float16-eabi-ieee-format.d index d02ed73fb00..7d8412b0a52 100644 --- a/gas/testsuite/gas/arm/float16-eabi-ieee-format.d +++ b/gas/testsuite/gas/arm/float16-eabi-ieee-format.d @@ -2,7 +2,7 @@ # readelf: -A # notarget: *-*pe *-*wince # source: float16-eabi.s -# as: -mfp16-format=3Dieee +# as: -mfp16-format=3Dieee -mfpu=3Dsoftvfp Attribute Section: aeabi File Attributes Tag_ARM_ISA_use: Yes diff --git a/gas/testsuite/gas/arm/float16-eabi-no-format.d b/gas/testsuite= /gas/arm/float16-eabi-no-format.d index 0d54f844218..706a7475e13 100644 --- a/gas/testsuite/gas/arm/float16-eabi-no-format.d +++ b/gas/testsuite/gas/arm/float16-eabi-no-format.d @@ -2,6 +2,7 @@ # readelf: -A # notarget: *-*pe *-*-wince # source: float16-eabi.s +# as: -mfpu=3Dsoftvfp Attribute Section: aeabi File Attributes Tag_ARM_ISA_use: Yes diff --git a/gas/testsuite/gas/elf/bad-bss.d b/gas/testsuite/gas/elf/bad-bs= s.d index 24a2c620d73..427faf5f03e 100644 --- a/gas/testsuite/gas/elf/bad-bss.d +++ b/gas/testsuite/gas/elf/bad-bss.d @@ -1,4 +1,5 @@ #name: bad .bss / .struct data allocation directives #source: bss.s #error_output: bad-bss.err +#notarget: arm*-*-elf arm*-*-nto* #target: i?86-*-* x86_64-*-* ia64-*-* arm-*-* aarch64-*-* kvx-*-*