aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-07-29 11:02:40 +0000
committerNick Clifton <nickc@redhat.com>2011-07-29 11:02:40 +0000
commit8c9461a4ded07f261a0563831500870f259fb59e (patch)
treebbca92752e20045680a945584f444500b4532cfd /gas
parent69b1d6052dac8093cb7e374729350eb1867be02c (diff)
downloadgdb-8c9461a4ded07f261a0563831500870f259fb59e.zip
gdb-8c9461a4ded07f261a0563831500870f259fb59e.tar.gz
gdb-8c9461a4ded07f261a0563831500870f259fb59e.tar.bz2
* gas/elf/warn-2.s: Add other types of NOP insn.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog4
-rw-r--r--gas/testsuite/gas/elf/warn-2.s23
2 files changed, 21 insertions, 6 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 568b104..eb5ce65 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2011-07-29 Nick Clifton <nickc@redhat.com>
+
+ * gas/elf/warn-2.s: Add other types of NOP insn.
+
2011-07-27 Nathan Sidwell <nathan@codesourcery.com>
* gas/elf/warn-2.s: New.
diff --git a/gas/testsuite/gas/elf/warn-2.s b/gas/testsuite/gas/elf/warn-2.s
index 0d69f10..12b7139 100644
--- a/gas/testsuite/gas/elf/warn-2.s
+++ b/gas/testsuite/gas/elf/warn-2.s
@@ -1,12 +1,23 @@
;# { dg-do assemble }
-;# { dg-skip-if "DWARF2 output not supported" { mcore-*-* mn10*-*-* moxie-*-* v850-*-* } }
-;# { dg-skip-if "no NOP opcode" { mmix-*-* openrisc-*-* or32-*-* } }
-;# { dg-options "--gdwarf2 --defsym ia64=0" }
-;# { dg-options "--gdwarf2 --defsym ia64=1" { target ia64-*-* i370-*-* } }
+;# { dg-options "--gdwarf2 --defsym nop_type=0" }
+;# { dg-options "--gdwarf2 --defsym nop_type=1" { target ia64-*-* } }
+;# { dg-options "--gdwarf2 --defsym nop_type=2" { target or32-*-* openrisc-*-* } }
+;# { dg-options "--gdwarf2 --defsym nop_type=3" { target i370-*-* } }
+
.offset 40
-.ifeq ia64 - 1
+
+.ifeq nop_type - 1
nop 0
.else
+.ifeq nop_type - 2
+ l.nop 0
+.else
+.ifeq nop_type - 3
+ nopr 1
+.else
nop
.endif
-;# { dg-warning "Warning: dwarf line number information for .* ignored" "" { target *-*-* } 0 }
+.endif
+.endif
+
+;# { dg-warning "Warning: dwarf line number information for .* ignored" "" { xfail i370-*-* mcore-*-* mn10200-*-* moxie-*-* openrisc-*-* or32-*-* v850-*-* } 0 }