* gas/cris/rd-brokw-pic-1.d, gas/cris/rd-brokw-pic-2.d,
authorHans-Peter Nilsson <hp@axis.com>
Mon, 16 May 2011 03:29:34 +0000 (03:29 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 16 May 2011 03:29:34 +0000 (03:29 +0000)
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
gas/testsuite/gas/cris/pic-err-2.s [new file with mode: 0644]
gas/testsuite/gas/cris/pic-err-3.s [new file with mode: 0644]
gas/testsuite/gas/cris/rd-brokw-pic-1.d
gas/testsuite/gas/cris/rd-brokw-pic-2.d
gas/testsuite/gas/cris/rd-fragtest-pic.d

index 341f5d2..3bc3582 100644 (file)
@@ -1,3 +1,10 @@
+2011-05-16  Hans-Peter Nilsson  <hp@axis.com>
+
+       * 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  <amodra@gmail.com>
 
        * 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 (file)
index 0000000..1720054
--- /dev/null
@@ -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 (file)
index 0000000..eca76e8
--- /dev/null
@@ -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
index 5027968..b0574c3 100644 (file)
@@ -1,5 +1,6 @@
 #objdump: -dr
 #as: --pic
+#target: cris-*-*elf* cris-*-linux-gnu
 #source: brokw-1.s
 
 .*:     file format .*-cris
index 30ca1f5..3ce0af6 100644 (file)
@@ -1,5 +1,6 @@
 #objdump: -dr
 #as: --pic
+#target: cris-*-*elf* cris-*-linux-gnu
 #source: brokw-2.s
 
 .*:     file format .*-cris
index 0e4c2f1..7a13409 100644 (file)
@@ -1,5 +1,6 @@
 #objdump: -dr
 #as: --pic
+#target: cris-*-*elf* cris-*-linux-gnu
 #source: fragtest.s
 
 .*:     file format .*-cris