GAS: Fix bogus "attempt to move .org backwards" relaxation errors
[deliverable/binutils-gdb.git] / gas / testsuite / gas / all / gas.exp
index 009e68c22015e222c41cd6494fc8d1bae44b24e5..b5b0bebbf35ada2a68868a7c00e1d7e0bdd55092 100644 (file)
@@ -455,3 +455,31 @@ load_lib gas-dg.exp
 dg-init
 dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/err-*.s $srcdir/$subdir/warn-*.s]] "" ""
 dg-finish
+
+# Set $nop_type appropriately to indicate the NOP instruction mnemonic.
+case $target_triplet in {
+    { "mmix-*-*" } {
+       set nop_type 5
+    }
+    { "i960-*-*" } {
+       set nop_type 4
+    }
+    { "i370-*-*" } {
+       set nop_type 3
+    }
+    { "or1k*-*-*" } {
+       set nop_type 2
+    }
+    { "ia64-*-*" } {
+       set nop_type 1
+    }
+    default {
+       set nop_type 0
+    }
+}
+run_dump_test "org-1" [list [list as "--defsym nop_type=$nop_type"]]
+run_dump_test "org-2"
+run_dump_test "org-3"
+run_dump_test "org-4"
+run_dump_test "org-5"
+run_dump_test "org-6"
This page took 0.024182 seconds and 4 git commands to generate.