aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-02-27 14:45:48 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-02-27 14:46:03 -0800
commit8f065d3b4a814b5a69b3f39700fea7034c79c492 (patch)
treea170e1535a729ac8e30224e1a941fe28f5fff564 /gas/testsuite
parente05cac70d855cd404eae9aeea5fcfb83ce8aabcf (diff)
downloadgdb-8f065d3b4a814b5a69b3f39700fea7034c79c492.zip
gdb-8f065d3b4a814b5a69b3f39700fea7034c79c492.tar.gz
gdb-8f065d3b4a814b5a69b3f39700fea7034c79c492.tar.bz2
gas: Rename .nop directive to .nops
Since directives of NO_PSEUDO_DOT targets don't have the leading '.' and "nop" can be a valid instruction, rename .nop directive to .nops to avoid conflict. * NEWS: Rename .nop to .nops. * doc/as.texinfo: Likewise. * read.c (potable): Add "nops". Remove "nop". (s_nop): Renamed to ... (s_nops): This. * read.h (s_nop): Renamed to ... (s_nops): This. * write.c (cvt_frag_to_fill): Rename .nop to .nops. (md_generate_nops): Likewise. (relax_segment): Likewise. * testsuite/gas/i386/nop-1.d: Updated. * testsuite/gas/i386/nop-1.s: Likewise. * testsuite/gas/i386/nop-2.d: Likewise. * testsuite/gas/i386/nop-2.s: Likewise. * testsuite/gas/i386/nop-3.d: Likewise. * testsuite/gas/i386/nop-3.s: Likewise. * testsuite/gas/i386/nop-4.d: Likewise. * testsuite/gas/i386/nop-4.s: Likewise. * testsuite/gas/i386/nop-5.d: Likewise. * testsuite/gas/i386/nop-5.s: Likewise. * testsuite/gas/i386/nop-6.d: Likewise. * testsuite/gas/i386/nop-6.s: Likewise. * testsuite/gas/i386/nop-bad-1.l: Likewise. * testsuite/gas/i386/nop-bad-1.s: Likewise. * testsuite/gas/i386/x86-64-nop-1.d: Likewise. * testsuite/gas/i386/x86-64-nop-2.d: Likewise. * testsuite/gas/i386/x86-64-nop-3.d: Likewise. * testsuite/gas/i386/x86-64-nop-4.d: Likewise. * testsuite/gas/i386/x86-64-nop-5.d: Likewise. * testsuite/gas/i386/x86-64-nop-6.d: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/i386/nop-1.d2
-rw-r--r--gas/testsuite/gas/i386/nop-1.s12
-rw-r--r--gas/testsuite/gas/i386/nop-2.d2
-rw-r--r--gas/testsuite/gas/i386/nop-2.s12
-rw-r--r--gas/testsuite/gas/i386/nop-3.d2
-rw-r--r--gas/testsuite/gas/i386/nop-3.s2
-rw-r--r--gas/testsuite/gas/i386/nop-4.d2
-rw-r--r--gas/testsuite/gas/i386/nop-4.s2
-rw-r--r--gas/testsuite/gas/i386/nop-5.d2
-rw-r--r--gas/testsuite/gas/i386/nop-5.s2
-rw-r--r--gas/testsuite/gas/i386/nop-6.d2
-rw-r--r--gas/testsuite/gas/i386/nop-6.s2
-rw-r--r--gas/testsuite/gas/i386/nop-bad-1.l2
-rw-r--r--gas/testsuite/gas/i386/nop-bad-1.s6
-rw-r--r--gas/testsuite/gas/i386/x86-64-nop-1.d2
-rw-r--r--gas/testsuite/gas/i386/x86-64-nop-2.d2
-rw-r--r--gas/testsuite/gas/i386/x86-64-nop-3.d2
-rw-r--r--gas/testsuite/gas/i386/x86-64-nop-4.d2
-rw-r--r--gas/testsuite/gas/i386/x86-64-nop-5.d2
-rw-r--r--gas/testsuite/gas/i386/x86-64-nop-6.d2
20 files changed, 32 insertions, 32 deletions
diff --git a/gas/testsuite/gas/i386/nop-1.d b/gas/testsuite/gas/i386/nop-1.d
index 46422c8..5a9e03e 100644
--- a/gas/testsuite/gas/i386/nop-1.d
+++ b/gas/testsuite/gas/i386/nop-1.d
@@ -1,5 +1,5 @@
#objdump: -drw
-#name: i386 .nop 1
+#name: i386 .nops 1
.*: +file format .*
diff --git a/gas/testsuite/gas/i386/nop-1.s b/gas/testsuite/gas/i386/nop-1.s
index 891783d..94ec28e 100644
--- a/gas/testsuite/gas/i386/nop-1.s
+++ b/gas/testsuite/gas/i386/nop-1.s
@@ -1,21 +1,21 @@
.text
single:
- .nop 0
+ .nops 0
nop
pseudo_1:
- .nop 1
+ .nops 1
pseudo_8:
- .nop 8
+ .nops 8
pseudo_8_4:
- .nop 8, 4
+ .nops 8, 4
pseudo_20:
- .nop 20
+ .nops 20
pseudo_30:
- .nop 30
+ .nops 30
xor %eax, %eax
diff --git a/gas/testsuite/gas/i386/nop-2.d b/gas/testsuite/gas/i386/nop-2.d
index 332b990..d248fd1 100644
--- a/gas/testsuite/gas/i386/nop-2.d
+++ b/gas/testsuite/gas/i386/nop-2.d
@@ -1,5 +1,5 @@
#objdump: -drw -Mi8086
-#name: i386 .nop 2
+#name: i386 .nops 2
.*: +file format .*
diff --git a/gas/testsuite/gas/i386/nop-2.s b/gas/testsuite/gas/i386/nop-2.s
index 2b71b97..9f7a372 100644
--- a/gas/testsuite/gas/i386/nop-2.s
+++ b/gas/testsuite/gas/i386/nop-2.s
@@ -1,22 +1,22 @@
.text
.code16
single:
- .nop 0
+ .nops 0
nop
pseudo_1:
- .nop 1
+ .nops 1
pseudo_8:
- .nop 8
+ .nops 8
pseudo_8_4:
- .nop 8, 4
+ .nops 8, 4
pseudo_20:
- .nop 20
+ .nops 20
pseudo_30:
- .nop 30
+ .nops 30
xor %eax, %eax
diff --git a/gas/testsuite/gas/i386/nop-3.d b/gas/testsuite/gas/i386/nop-3.d
index bebd24b..b2b4577 100644
--- a/gas/testsuite/gas/i386/nop-3.d
+++ b/gas/testsuite/gas/i386/nop-3.d
@@ -1,5 +1,5 @@
#objdump: -drw
-#name: i386 .nop 3
+#name: i386 .nops 3
.*: +file format .*
diff --git a/gas/testsuite/gas/i386/nop-3.s b/gas/testsuite/gas/i386/nop-3.s
index 57370ff..0a6bb58 100644
--- a/gas/testsuite/gas/i386/nop-3.s
+++ b/gas/testsuite/gas/i386/nop-3.s
@@ -4,7 +4,7 @@ _start:
140:
testl %eax, %eax
141:
- .nop -(((144f-143f)-(141b-140b)) > 0)*((144f-143f)-(141b-140b)),7
+ .nops -(((144f-143f)-(141b-140b)) > 0)*((144f-143f)-(141b-140b)),7
142:
xor %eax, %eax
.pushsection .altinstr_replacement,"ax"
diff --git a/gas/testsuite/gas/i386/nop-4.d b/gas/testsuite/gas/i386/nop-4.d
index 99ddcd3..b548d07 100644
--- a/gas/testsuite/gas/i386/nop-4.d
+++ b/gas/testsuite/gas/i386/nop-4.d
@@ -1,5 +1,5 @@
#objdump: -drw
-#name: i386 .nop 4
+#name: i386 .nops 4
.*: +file format .*
diff --git a/gas/testsuite/gas/i386/nop-4.s b/gas/testsuite/gas/i386/nop-4.s
index f7aa111..4f0bfe6 100644
--- a/gas/testsuite/gas/i386/nop-4.s
+++ b/gas/testsuite/gas/i386/nop-4.s
@@ -4,7 +4,7 @@ _start:
140:
testl %eax, %eax
141:
- .nop -(((144f-143f)-(141b-140b)) > 0)*((144f-143f)-(141b-140b))
+ .nops -(((144f-143f)-(141b-140b)) > 0)*((144f-143f)-(141b-140b))
142:
xor %eax, %eax
.pushsection .altinstr_replacement,"ax"
diff --git a/gas/testsuite/gas/i386/nop-5.d b/gas/testsuite/gas/i386/nop-5.d
index aab4258..6a47913 100644
--- a/gas/testsuite/gas/i386/nop-5.d
+++ b/gas/testsuite/gas/i386/nop-5.d
@@ -1,5 +1,5 @@
#objdump: -drw
-#name: i386 .nop 5
+#name: i386 .nops 5
.*: +file format .*
diff --git a/gas/testsuite/gas/i386/nop-5.s b/gas/testsuite/gas/i386/nop-5.s
index 4f563ce..d91f81f 100644
--- a/gas/testsuite/gas/i386/nop-5.s
+++ b/gas/testsuite/gas/i386/nop-5.s
@@ -4,7 +4,7 @@ _start:
140:
testl %eax, %eax
141:
- .nop -(((144f-143f)-(141b-140b)) > 0)*((144f-143f)-(141b-140b)),6
+ .nops -(((144f-143f)-(141b-140b)) > 0)*((144f-143f)-(141b-140b)),6
142:
xor %eax, %eax
.pushsection .altinstr_replacement,"ax"
diff --git a/gas/testsuite/gas/i386/nop-6.d b/gas/testsuite/gas/i386/nop-6.d
index 93ee8de..851c129 100644
--- a/gas/testsuite/gas/i386/nop-6.d
+++ b/gas/testsuite/gas/i386/nop-6.d
@@ -1,5 +1,5 @@
#objdump: -drw
-#name: i386 .nop 6
+#name: i386 .nops 6
.*: +file format .*
diff --git a/gas/testsuite/gas/i386/nop-6.s b/gas/testsuite/gas/i386/nop-6.s
index c7b1e2c..d8952c9 100644
--- a/gas/testsuite/gas/i386/nop-6.s
+++ b/gas/testsuite/gas/i386/nop-6.s
@@ -1,5 +1,5 @@
.macro mknops nr_bytes
- .nop \nr_bytes, 9
+ .nops \nr_bytes, 9
.endm
.macro ALTERNATIVE
diff --git a/gas/testsuite/gas/i386/nop-bad-1.l b/gas/testsuite/gas/i386/nop-bad-1.l
index 34be496..2ae5b484 100644
--- a/gas/testsuite/gas/i386/nop-bad-1.l
+++ b/gas/testsuite/gas/i386/nop-bad-1.l
@@ -1,4 +1,4 @@
.*: Assembler messages:
.*:2: Warning: negative nop control byte, ignored
-.*:4: Warning: \.space, \.nop or \.fill with negative value, ignored
+.*:4: Warning: \.space, \.nops or \.fill with negative value, ignored
.*:3: Error: invalide single nop size: 20 \(expect within \[0, [0-9]+\]\)
diff --git a/gas/testsuite/gas/i386/nop-bad-1.s b/gas/testsuite/gas/i386/nop-bad-1.s
index 53cc7d5..2f2bbfb 100644
--- a/gas/testsuite/gas/i386/nop-bad-1.s
+++ b/gas/testsuite/gas/i386/nop-bad-1.s
@@ -1,4 +1,4 @@
.text
- .nop 100, -2
- .nop 100, 20
- .nop -1
+ .nops 100, -2
+ .nops 100, 20
+ .nops -1
diff --git a/gas/testsuite/gas/i386/x86-64-nop-1.d b/gas/testsuite/gas/i386/x86-64-nop-1.d
index f3edc7d..ec6263b 100644
--- a/gas/testsuite/gas/i386/x86-64-nop-1.d
+++ b/gas/testsuite/gas/i386/x86-64-nop-1.d
@@ -1,6 +1,6 @@
#source: nop-1.s
#objdump: -drw
-#name: x86-64 .nop 1
+#name: x86-64 .nops 1
.*: +file format .*
diff --git a/gas/testsuite/gas/i386/x86-64-nop-2.d b/gas/testsuite/gas/i386/x86-64-nop-2.d
index e894d2c..438e4f8 100644
--- a/gas/testsuite/gas/i386/x86-64-nop-2.d
+++ b/gas/testsuite/gas/i386/x86-64-nop-2.d
@@ -1,6 +1,6 @@
#source: nop-2.s
#objdump: -drw -Mi8086
-#name: x86-64 .nop 2
+#name: x86-64 .nops 2
.*: +file format .*
diff --git a/gas/testsuite/gas/i386/x86-64-nop-3.d b/gas/testsuite/gas/i386/x86-64-nop-3.d
index b43239a..1dc9505 100644
--- a/gas/testsuite/gas/i386/x86-64-nop-3.d
+++ b/gas/testsuite/gas/i386/x86-64-nop-3.d
@@ -1,6 +1,6 @@
#source: nop-3.s
#objdump: -drw
-#name: x86-64 .nop 3
+#name: x86-64 .nops 3
.*: +file format .*
diff --git a/gas/testsuite/gas/i386/x86-64-nop-4.d b/gas/testsuite/gas/i386/x86-64-nop-4.d
index a910171..25927ca 100644
--- a/gas/testsuite/gas/i386/x86-64-nop-4.d
+++ b/gas/testsuite/gas/i386/x86-64-nop-4.d
@@ -1,6 +1,6 @@
#source: nop-4.s
#objdump: -drw
-#name: x86-64 .nop 4
+#name: x86-64 .nops 4
.*: +file format .*
diff --git a/gas/testsuite/gas/i386/x86-64-nop-5.d b/gas/testsuite/gas/i386/x86-64-nop-5.d
index 57493cf..a609a12 100644
--- a/gas/testsuite/gas/i386/x86-64-nop-5.d
+++ b/gas/testsuite/gas/i386/x86-64-nop-5.d
@@ -1,6 +1,6 @@
#source: nop-5.s
#objdump: -drw
-#name: x86-64 .nop 5
+#name: x86-64 .nops 5
.*: +file format .*
diff --git a/gas/testsuite/gas/i386/x86-64-nop-6.d b/gas/testsuite/gas/i386/x86-64-nop-6.d
index 520f590..63f3817 100644
--- a/gas/testsuite/gas/i386/x86-64-nop-6.d
+++ b/gas/testsuite/gas/i386/x86-64-nop-6.d
@@ -1,6 +1,6 @@
#source: nop-6.s
#objdump: -drw
-#name: x86-64 .nop 6
+#name: x86-64 .nops 6
.*: +file format .*