* 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 341f5d2330e5a352b6c7cefa715d638ffaf78df2..3bc3582c97279c41a8b27a92f926515cd155f826 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 502796817bfb69b059c7e6aad811e0fa6c922d82..b0574c3722565820eb92c9bb7ee1e1b7f6ace656 100644 (file)
@@ -1,5 +1,6 @@
 #objdump: -dr
 #as: --pic
+#target: cris-*-*elf* cris-*-linux-gnu
 #source: brokw-1.s
 
 .*:     file format .*-cris
index 30ca1f5b83ddc2d7576fcfa3bcfa119a6ec38dc5..3ce0af6b49912ba6e609be21fc6d25ff7493a7cf 100644 (file)
@@ -1,5 +1,6 @@
 #objdump: -dr
 #as: --pic
+#target: cris-*-*elf* cris-*-linux-gnu
 #source: brokw-2.s
 
 .*:     file format .*-cris
index 0e4c2f16a3926988fd2cf7b57f750f2bff18619d..7a1340990409e73f08e2943a7f13210c322a8486 100644 (file)
@@ -1,5 +1,6 @@
 #objdump: -dr
 #as: --pic
+#target: cris-*-*elf* cris-*-linux-gnu
 #source: fragtest.s
 
 .*:     file format .*-cris
This page took 0.028701 seconds and 4 git commands to generate.