From 27d0bed645075a5aad861d6a9f62a373d45ac176 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Mon, 16 May 2011 03:29:34 +0000 Subject: [PATCH] * gas/cris/rd-brokw-pic-1.d, gas/cris/rd-brokw-pic-2.d, gas/cris/rd-fragtest-pic.d: Gate on targets cris-*-*elf* and cris-*-linux-gnu. * gas/cris/pic-err-2.s, gas/cris/pic-err-3.s: New tests. --- gas/testsuite/ChangeLog | 7 +++++++ gas/testsuite/gas/cris/pic-err-2.s | 6 ++++++ gas/testsuite/gas/cris/pic-err-3.s | 6 ++++++ gas/testsuite/gas/cris/rd-brokw-pic-1.d | 1 + gas/testsuite/gas/cris/rd-brokw-pic-2.d | 1 + gas/testsuite/gas/cris/rd-fragtest-pic.d | 1 + 6 files changed, 22 insertions(+) create mode 100644 gas/testsuite/gas/cris/pic-err-2.s create mode 100644 gas/testsuite/gas/cris/pic-err-3.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 341f5d2330..3bc3582c97 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2011-05-16 Hans-Peter Nilsson + + * gas/cris/rd-brokw-pic-1.d, gas/cris/rd-brokw-pic-2.d, + gas/cris/rd-fragtest-pic.d: Gate on targets cris-*-*elf* and + cris-*-linux-gnu. + * gas/cris/pic-err-2.s, gas/cris/pic-err-3.s: New tests. + 2011-05-14 Alan Modra * gas/all/gas.exp: Fix typo last change. diff --git a/gas/testsuite/gas/cris/pic-err-2.s b/gas/testsuite/gas/cris/pic-err-2.s new file mode 100644 index 0000000000..1720054b56 --- /dev/null +++ b/gas/testsuite/gas/cris/pic-err-2.s @@ -0,0 +1,6 @@ +; Check that --pic isn't recognized for a.out files, specified by emulation. + +; { dg-do assemble { target cris-*-* } } +; { dg-options "--pic --em=crisaout" } +; { dg-error ".* --pic is invalid" "" { target cris-*-* } 0 } + nop diff --git a/gas/testsuite/gas/cris/pic-err-3.s b/gas/testsuite/gas/cris/pic-err-3.s new file mode 100644 index 0000000000..eca76e88a9 --- /dev/null +++ b/gas/testsuite/gas/cris/pic-err-3.s @@ -0,0 +1,6 @@ +; Check that --pic isn't recognized for a.out files, with a.out the default. + +; { dg-do assemble { target cris-*-*aout* } } +; { dg-options "--pic" } +; { dg-error ".* --pic is invalid" "" { target cris-*-* } 0 } + nop diff --git a/gas/testsuite/gas/cris/rd-brokw-pic-1.d b/gas/testsuite/gas/cris/rd-brokw-pic-1.d index 502796817b..b0574c3722 100644 --- a/gas/testsuite/gas/cris/rd-brokw-pic-1.d +++ b/gas/testsuite/gas/cris/rd-brokw-pic-1.d @@ -1,5 +1,6 @@ #objdump: -dr #as: --pic +#target: cris-*-*elf* cris-*-linux-gnu #source: brokw-1.s .*: file format .*-cris diff --git a/gas/testsuite/gas/cris/rd-brokw-pic-2.d b/gas/testsuite/gas/cris/rd-brokw-pic-2.d index 30ca1f5b83..3ce0af6b49 100644 --- a/gas/testsuite/gas/cris/rd-brokw-pic-2.d +++ b/gas/testsuite/gas/cris/rd-brokw-pic-2.d @@ -1,5 +1,6 @@ #objdump: -dr #as: --pic +#target: cris-*-*elf* cris-*-linux-gnu #source: brokw-2.s .*: file format .*-cris diff --git a/gas/testsuite/gas/cris/rd-fragtest-pic.d b/gas/testsuite/gas/cris/rd-fragtest-pic.d index 0e4c2f16a3..7a13409904 100644 --- a/gas/testsuite/gas/cris/rd-fragtest-pic.d +++ b/gas/testsuite/gas/cris/rd-fragtest-pic.d @@ -1,5 +1,6 @@ #objdump: -dr #as: --pic +#target: cris-*-*elf* cris-*-linux-gnu #source: fragtest.s .*: file format .*-cris