From 48f7f3036a792c655c98b0742574841743e38f58 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 4 Dec 2017 10:12:46 +1030 Subject: [PATCH] Run powerpc vle gas tests for all powerpc ELF targets * testsuite/gas/ppc/ppc.exp: Don't exclude VLE tests when little-endian. * testsuite/gas/ppc/efs.d: Add -mbig to assembler options. * testsuite/gas/ppc/efs2.d: Likewise. * testsuite/gas/ppc/lsp-checks.d: Likewise. * testsuite/gas/ppc/lsp.d: Likewise. * testsuite/gas/ppc/spe.d: Likewise. * testsuite/gas/ppc/spe2-checks.d: Likewise. * testsuite/gas/ppc/spe2.d: Likewise. * testsuite/gas/ppc/spe_ambiguous.d: Likewise. * testsuite/gas/ppc/vle-mult-ld-st-insns.d: Likewise. * testsuite/gas/ppc/vle-reloc.d: Likewise. * testsuite/gas/ppc/vle-simple-1.d: Likewise. * testsuite/gas/ppc/vle-simple-2.d: Likewise. * testsuite/gas/ppc/vle-simple-3.d: Likewise. * testsuite/gas/ppc/vle-simple-4.d: Likewise. * testsuite/gas/ppc/vle-simple-5.d: Likewise. * testsuite/gas/ppc/vle-simple-6.d: Likewise. * testsuite/gas/ppc/vle.d: Likewise. --- gas/ChangeLog | 21 ++++++++++ gas/testsuite/gas/ppc/efs.d | 2 +- gas/testsuite/gas/ppc/efs2.d | 2 +- gas/testsuite/gas/ppc/lsp-checks.d | 2 +- gas/testsuite/gas/ppc/lsp.d | 2 +- gas/testsuite/gas/ppc/ppc.exp | 42 ++++++++++---------- gas/testsuite/gas/ppc/spe.d | 2 +- gas/testsuite/gas/ppc/spe2-checks.d | 2 +- gas/testsuite/gas/ppc/spe2.d | 2 +- gas/testsuite/gas/ppc/spe_ambiguous.d | 2 +- gas/testsuite/gas/ppc/vle-mult-ld-st-insns.d | 2 +- gas/testsuite/gas/ppc/vle-reloc.d | 2 +- gas/testsuite/gas/ppc/vle-simple-1.d | 2 +- gas/testsuite/gas/ppc/vle-simple-2.d | 2 +- gas/testsuite/gas/ppc/vle-simple-3.d | 2 +- gas/testsuite/gas/ppc/vle-simple-4.d | 2 +- gas/testsuite/gas/ppc/vle-simple-5.d | 2 +- gas/testsuite/gas/ppc/vle-simple-6.d | 2 +- gas/testsuite/gas/ppc/vle.d | 2 +- 19 files changed, 58 insertions(+), 39 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 05dd5ee6346..b88af71ce5d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,24 @@ +2017-12-04 Alan Modra + + * testsuite/gas/ppc/ppc.exp: Don't exclude VLE tests when little-endian. + * testsuite/gas/ppc/efs.d: Add -mbig to assembler options. + * testsuite/gas/ppc/efs2.d: Likewise. + * testsuite/gas/ppc/lsp-checks.d: Likewise. + * testsuite/gas/ppc/lsp.d: Likewise. + * testsuite/gas/ppc/spe.d: Likewise. + * testsuite/gas/ppc/spe2-checks.d: Likewise. + * testsuite/gas/ppc/spe2.d: Likewise. + * testsuite/gas/ppc/spe_ambiguous.d: Likewise. + * testsuite/gas/ppc/vle-mult-ld-st-insns.d: Likewise. + * testsuite/gas/ppc/vle-reloc.d: Likewise. + * testsuite/gas/ppc/vle-simple-1.d: Likewise. + * testsuite/gas/ppc/vle-simple-2.d: Likewise. + * testsuite/gas/ppc/vle-simple-3.d: Likewise. + * testsuite/gas/ppc/vle-simple-4.d: Likewise. + * testsuite/gas/ppc/vle-simple-5.d: Likewise. + * testsuite/gas/ppc/vle-simple-6.d: Likewise. + * testsuite/gas/ppc/vle.d: Likewise. + 2017-12-03 Jim Wilson * doc/c-riscv.texi (RISC-V-Directives): Move @section immediately after diff --git a/gas/testsuite/gas/ppc/efs.d b/gas/testsuite/gas/ppc/efs.d index 5f1a84798b7..f2ecad9322c 100644 --- a/gas/testsuite/gas/ppc/efs.d +++ b/gas/testsuite/gas/ppc/efs.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle +#as: -a32 -mbig -mvle #objdump: -d -Mefs -Mvle -Mefs2 #name: Validate EFS instructions diff --git a/gas/testsuite/gas/ppc/efs2.d b/gas/testsuite/gas/ppc/efs2.d index 59141016e2e..02fd26f769f 100644 --- a/gas/testsuite/gas/ppc/efs2.d +++ b/gas/testsuite/gas/ppc/efs2.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle +#as: -a32 -mbig -mvle #objdump: -d -Mvle -Mefs2 #name: Validate EFS2 instructions diff --git a/gas/testsuite/gas/ppc/lsp-checks.d b/gas/testsuite/gas/ppc/lsp-checks.d index 99ccf546d6a..39581e97341 100644 --- a/gas/testsuite/gas/ppc/lsp-checks.d +++ b/gas/testsuite/gas/ppc/lsp-checks.d @@ -1,3 +1,3 @@ #name: Test LSP operands checks -#as: -a32 -mvle +#as: -a32 -mbig -mvle #error-output: lsp-checks.l diff --git a/gas/testsuite/gas/ppc/lsp.d b/gas/testsuite/gas/ppc/lsp.d index f6c8458b14b..ca45a364c0f 100644 --- a/gas/testsuite/gas/ppc/lsp.d +++ b/gas/testsuite/gas/ppc/lsp.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle +#as: -a32 -mbig -mvle #objdump: -d -Mvle #name: Validate LSP instructions diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp index b12fbd3d1e9..0d2941bde50 100644 --- a/gas/testsuite/gas/ppc/ppc.exp +++ b/gas/testsuite/gas/ppc/ppc.exp @@ -51,30 +51,28 @@ if { [istarget powerpc*-*-*] } then { run_dump_test "476" run_dump_test "a2" run_dump_test "pr21303" - if { ![istarget powerpc*le-*-*] } then { - run_dump_test "vle" - run_dump_test "vle-reloc" - run_dump_test "vle-simple-1" - run_dump_test "vle-simple-2" - run_dump_test "vle-simple-3" - run_dump_test "vle-simple-4" - run_dump_test "vle-simple-5" - run_dump_test "vle-simple-6" - run_dump_test "vle-mult-ld-st-insns" + run_dump_test "vle" + run_dump_test "vle-reloc" + run_dump_test "vle-simple-1" + run_dump_test "vle-simple-2" + run_dump_test "vle-simple-3" + run_dump_test "vle-simple-4" + run_dump_test "vle-simple-5" + run_dump_test "vle-simple-6" + run_dump_test "vle-mult-ld-st-insns" - #fail expected until get_powerpc_dialect() patch not applied - setup_xfail "*-*-*" - run_dump_test "lsp" - run_dump_test "lsp-checks" - run_dump_test "efs" - run_dump_test "efs2" - run_dump_test "spe2" - run_dump_test "spe2-checks" - run_dump_test "spe" + #fail expected until get_powerpc_dialect() patch not applied + setup_xfail "*-*-*" + run_dump_test "lsp" + run_dump_test "lsp-checks" + run_dump_test "efs" + run_dump_test "efs2" + run_dump_test "spe2" + run_dump_test "spe2-checks" + run_dump_test "spe" - setup_xfail "*-*-*" - run_dump_test "spe_ambiguous" - } + setup_xfail "*-*-*" + run_dump_test "spe_ambiguous" } if { [istarget powerpc-*-*aix*] } then { diff --git a/gas/testsuite/gas/ppc/spe.d b/gas/testsuite/gas/ppc/spe.d index 739102829fd..caaa9e02d0d 100644 --- a/gas/testsuite/gas/ppc/spe.d +++ b/gas/testsuite/gas/ppc/spe.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle +#as: -a32 -mbig -mvle #objdump: -d -Mspe #name: Validate SPE instructions diff --git a/gas/testsuite/gas/ppc/spe2-checks.d b/gas/testsuite/gas/ppc/spe2-checks.d index ec86e66766b..0acc27fa87f 100644 --- a/gas/testsuite/gas/ppc/spe2-checks.d +++ b/gas/testsuite/gas/ppc/spe2-checks.d @@ -1,3 +1,3 @@ -#as: -a32 -mvle -mspe2 +#as: -a32 -mbig -mvle -mspe2 #name: Test SPE2 operands checks #error-output: spe2-checks.l diff --git a/gas/testsuite/gas/ppc/spe2.d b/gas/testsuite/gas/ppc/spe2.d index e4c45deb247..25dbd2b49d7 100644 --- a/gas/testsuite/gas/ppc/spe2.d +++ b/gas/testsuite/gas/ppc/spe2.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle -mspe2 +#as: -a32 -mbig -mvle -mspe2 #objdump: -d -Mspe2 -Mefs2 #name: Validate SPE2 instructions diff --git a/gas/testsuite/gas/ppc/spe_ambiguous.d b/gas/testsuite/gas/ppc/spe_ambiguous.d index cdfb005cb80..2e0b1d3594f 100644 --- a/gas/testsuite/gas/ppc/spe_ambiguous.d +++ b/gas/testsuite/gas/ppc/spe_ambiguous.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle +#as: -a32 -mbig -mvle #objdump: -d -Mspe #name: Validate SPE instructions diff --git a/gas/testsuite/gas/ppc/vle-mult-ld-st-insns.d b/gas/testsuite/gas/ppc/vle-mult-ld-st-insns.d index 2f9d6c7ca7c..ddaa6941c71 100644 --- a/gas/testsuite/gas/ppc/vle-mult-ld-st-insns.d +++ b/gas/testsuite/gas/ppc/vle-mult-ld-st-insns.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle -mregnames +#as: -a32 -mbig -mvle -mregnames #objdump: -dr -Mvle #name: VLE Instructions for improving interrupt handler efficiency diff --git a/gas/testsuite/gas/ppc/vle-reloc.d b/gas/testsuite/gas/ppc/vle-reloc.d index dad153f52ca..77d76f1e103 100644 --- a/gas/testsuite/gas/ppc/vle-reloc.d +++ b/gas/testsuite/gas/ppc/vle-reloc.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle +#as: -a32 -mbig -mvle #objdump: -dr -Mvle #name: VLE relocations diff --git a/gas/testsuite/gas/ppc/vle-simple-1.d b/gas/testsuite/gas/ppc/vle-simple-1.d index fee4054b06a..43082c82099 100644 --- a/gas/testsuite/gas/ppc/vle-simple-1.d +++ b/gas/testsuite/gas/ppc/vle-simple-1.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle +#as: -a32 -mbig -mvle #objdump: -dr -Mvle #name: VLE Simplified mnemonics 1 diff --git a/gas/testsuite/gas/ppc/vle-simple-2.d b/gas/testsuite/gas/ppc/vle-simple-2.d index 291f6eaea10..a6cec75dbb5 100644 --- a/gas/testsuite/gas/ppc/vle-simple-2.d +++ b/gas/testsuite/gas/ppc/vle-simple-2.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle +#as: -a32 -mbig -mvle #objdump: -dr -Mvle #name: VLE Simplified mnemonics 2 diff --git a/gas/testsuite/gas/ppc/vle-simple-3.d b/gas/testsuite/gas/ppc/vle-simple-3.d index 7b3ddb23f0b..5218c8577af 100644 --- a/gas/testsuite/gas/ppc/vle-simple-3.d +++ b/gas/testsuite/gas/ppc/vle-simple-3.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle +#as: -a32 -mbig -mvle #objdump: -dr -Mvle #name: VLE Simplified mnemonics 3 diff --git a/gas/testsuite/gas/ppc/vle-simple-4.d b/gas/testsuite/gas/ppc/vle-simple-4.d index 9d9ae381e9f..f66733e0dda 100644 --- a/gas/testsuite/gas/ppc/vle-simple-4.d +++ b/gas/testsuite/gas/ppc/vle-simple-4.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle +#as: -a32 -mbig -mvle #objdump: -dr -Mvle #name: VLE Simplified mnemonics 4 diff --git a/gas/testsuite/gas/ppc/vle-simple-5.d b/gas/testsuite/gas/ppc/vle-simple-5.d index 8e981457ed0..817df09d1cd 100644 --- a/gas/testsuite/gas/ppc/vle-simple-5.d +++ b/gas/testsuite/gas/ppc/vle-simple-5.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle +#as: -a32 -mbig -mvle #objdump: -dr -Mvle #name: VLE Simplified mnemonics 5 diff --git a/gas/testsuite/gas/ppc/vle-simple-6.d b/gas/testsuite/gas/ppc/vle-simple-6.d index 64c9a2ddcf4..9ea87b236f7 100644 --- a/gas/testsuite/gas/ppc/vle-simple-6.d +++ b/gas/testsuite/gas/ppc/vle-simple-6.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle +#as: -a32 -mbig -mvle #objdump: -dr -Mvle #name: VLE Simplified mnemonics 6 diff --git a/gas/testsuite/gas/ppc/vle.d b/gas/testsuite/gas/ppc/vle.d index dcc2cc3ba3a..6661ff4dd13 100644 --- a/gas/testsuite/gas/ppc/vle.d +++ b/gas/testsuite/gas/ppc/vle.d @@ -1,4 +1,4 @@ -#as: -a32 -mvle +#as: -a32 -mbig -mvle #objdump: -dr -Mvle #name: Validate VLE instructions -- 2.30.2