OSDN Git Service

* gas/elf/warn-2.s: Add other types of NOP insn.
authornickc <nickc>
Fri, 29 Jul 2011 11:02:39 +0000 (11:02 +0000)
committernickc <nickc>
Fri, 29 Jul 2011 11:02:39 +0000 (11:02 +0000)
gas/testsuite/ChangeLog
gas/testsuite/gas/elf/warn-2.s

index 568b104..eb5ce65 100644 (file)
@@ -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.
index 0d69f10..12b7139 100644 (file)
@@ -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 }