From 65f4dd4721a30c7c17f5164b1c0486f9e2cd1755 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 31 Oct 2012 08:42:11 +0000 Subject: [PATCH] oops accidentally omitted from previous delta --- ld/testsuite/ld-arm/eabi-hard-float.d | 12 ++++++++++++ ld/testsuite/ld-arm/eabi-hard-float.s | 9 +++++++++ ld/testsuite/ld-arm/eabi-soft-float-ABI4.d | 12 ++++++++++++ ld/testsuite/ld-arm/eabi-soft-float-r.d | 12 ++++++++++++ ld/testsuite/ld-arm/eabi-soft-float.d | 12 ++++++++++++ ld/testsuite/ld-arm/eabi-soft-float.s | 8 ++++++++ 6 files changed, 65 insertions(+) create mode 100644 ld/testsuite/ld-arm/eabi-hard-float.d create mode 100644 ld/testsuite/ld-arm/eabi-hard-float.s create mode 100644 ld/testsuite/ld-arm/eabi-soft-float-ABI4.d create mode 100644 ld/testsuite/ld-arm/eabi-soft-float-r.d create mode 100644 ld/testsuite/ld-arm/eabi-soft-float.d create mode 100644 ld/testsuite/ld-arm/eabi-soft-float.s diff --git a/ld/testsuite/ld-arm/eabi-hard-float.d b/ld/testsuite/ld-arm/eabi-hard-float.d new file mode 100644 index 00000000000..bc8cc3f920b --- /dev/null +++ b/ld/testsuite/ld-arm/eabi-hard-float.d @@ -0,0 +1,12 @@ +#source: eabi-hard-float.s +#as: +#ld: -r +#readelf: -h +# This test is only valid on ELF based ports. +# not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +# Check that we set the hard-float ABI flag directly + +ELF Header: +#... + Flags: 0x5000400, Version5 EABI, hard-float ABI +#... diff --git a/ld/testsuite/ld-arm/eabi-hard-float.s b/ld/testsuite/ld-arm/eabi-hard-float.s new file mode 100644 index 00000000000..3d49794be8b --- /dev/null +++ b/ld/testsuite/ld-arm/eabi-hard-float.s @@ -0,0 +1,9 @@ + .cpu cortex-a9 + .fpu vfpv3 + .eabi_attribute Tag_ABI_VFP_args, 1 + .file "eabi-hard-float.s" + .globl _start + .type _start,%function +_start: + .size _start,.-_start + diff --git a/ld/testsuite/ld-arm/eabi-soft-float-ABI4.d b/ld/testsuite/ld-arm/eabi-soft-float-ABI4.d new file mode 100644 index 00000000000..180482626e4 --- /dev/null +++ b/ld/testsuite/ld-arm/eabi-soft-float-ABI4.d @@ -0,0 +1,12 @@ +#source: eabi-soft-float.s +#as: +#ld: -r +#readelf: -h +# This test is only valid on ELF based ports. +# not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +# if we compile for EABI ver4, ld should *not* set either of the float ABI flags + +ELF Header: +#... + Flags: 0x4000000, Version4 EABI +#... diff --git a/ld/testsuite/ld-arm/eabi-soft-float-r.d b/ld/testsuite/ld-arm/eabi-soft-float-r.d new file mode 100644 index 00000000000..262d4829b11 --- /dev/null +++ b/ld/testsuite/ld-arm/eabi-soft-float-r.d @@ -0,0 +1,12 @@ +#source: eabi-soft-float.s +#as: +#ld: -r +#readelf: -h +# This test is only valid on ELF based ports. +# not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +# if we call "ld -r", it should *not* set either of the float ABI flags + +ELF Header: +#... + Flags: 0x5000000, Version5 EABI +#... diff --git a/ld/testsuite/ld-arm/eabi-soft-float.d b/ld/testsuite/ld-arm/eabi-soft-float.d new file mode 100644 index 00000000000..6cc7086ccd6 --- /dev/null +++ b/ld/testsuite/ld-arm/eabi-soft-float.d @@ -0,0 +1,12 @@ +#source: eabi-soft-float.s +#as: +#ld: -r +#readelf: -h +# This test is only valid on ELF based ports. +# not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* +# Check that we set the soft-float ABI flag directly + +ELF Header: +#... + Flags: 0x5000200, Version5 EABI, soft-float ABI +#... diff --git a/ld/testsuite/ld-arm/eabi-soft-float.s b/ld/testsuite/ld-arm/eabi-soft-float.s new file mode 100644 index 00000000000..f23fb17a43a --- /dev/null +++ b/ld/testsuite/ld-arm/eabi-soft-float.s @@ -0,0 +1,8 @@ + .cpu cortex-a9 + .fpu vfpv3 + .eabi_attribute Tag_ABI_VFP_args, 0 + .file "eabi-soft-float.s" + .globl _start + .type _start,%function +_start: + .size _start,.-_start -- 2.30.2