diff options
author | Jan Beulich <jbeulich@novell.com> | 2017-11-14 08:40:48 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2017-11-14 08:40:48 +0100 |
commit | df145ef65632dbc6bb31f8d01a088f8600b6c7f1 (patch) | |
tree | 00a547769cdfab452299a41da278f26e415cdcb4 /gas/testsuite/gas | |
parent | 2d0d44d514d9a2e2b0f7ae8129d52b02160c9897 (diff) |
x86: string insns don't allow displacements
Remove the misleading indicators from the table.
Diffstat (limited to 'gas/testsuite/gas')
-rw-r--r-- | gas/testsuite/gas/i386/string-bad.l | 20 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/string-bad.s | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/string-ok.d | 17 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/string-ok.e | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/string-ok.s | 19 |
5 files changed, 43 insertions, 33 deletions
diff --git a/gas/testsuite/gas/i386/string-bad.l b/gas/testsuite/gas/i386/string-bad.l index 0230bbe26f..f133afb061 100644 --- a/gas/testsuite/gas/i386/string-bad.l +++ b/gas/testsuite/gas/i386/string-bad.l @@ -6,12 +6,24 @@ .*:8: Error: .* .*:9: Error: .* .*:10: Error: .* -.*:14: Error: .* +.*:11: Warning: .* +.*:12: Warning: .* +.*:13: Warning: .* +.*:14: Warning: .* +.*:15: Warning: .* .*:15: Error: .* -.*:16: Error: .* -.*:17: Error: .* -.*:18: Error: .* .*:19: Error: .* .*:20: Error: .* .*:21: Error: .* .*:22: Error: .* +.*:23: Error: .* +.*:24: Error: .* +.*:25: Error: .* +.*:26: Error: .* +.*:27: Error: .* +.*:28: Warning: .* +.*:29: Warning: .* +.*:30: Warning: .* +.*:31: Warning: .* +.*:32: Warning: .* +.*:32: Error: .* diff --git a/gas/testsuite/gas/i386/string-bad.s b/gas/testsuite/gas/i386/string-bad.s index 7c739a1d86..17d7d89d0c 100644 --- a/gas/testsuite/gas/i386/string-bad.s +++ b/gas/testsuite/gas/i386/string-bad.s @@ -8,6 +8,11 @@ start: cmpsb %ds:(%edi), (%esi) scasb %ds:(%edi) insb (%dx), %ds:(%edi) + xlatb (%esi) + xlatb (,%ebx) + xlatb 1(%ebx) + xlatb x(%ebx) + xlatb 0 .intel_syntax noprefix @@ -20,3 +25,8 @@ start: cmps byte ptr [esi], dword ptr [edi] scas byte ptr ds:[edi] ins byte ptr ds:[edi], dx + xlat byte ptr [esi] + xlat byte ptr [%ebx*1] + xlat byte ptr [ebx+1] + xlat byte ptr x[ebx] + xlat byte ptr FLAT:0 diff --git a/gas/testsuite/gas/i386/string-ok.d b/gas/testsuite/gas/i386/string-ok.d index 3e218733de..ddaad5872a 100644 --- a/gas/testsuite/gas/i386/string-ok.d +++ b/gas/testsuite/gas/i386/string-ok.d @@ -26,12 +26,12 @@ Disassembly of section .text: [ ]+[0-9a-f]+: ae[ ]+scas (%es:)?\(%edi\),%al [ ]+[0-9a-f]+: aa[ ]+stos %al,(%es:)?\(%edi\) [ ]+[0-9a-f]+: aa[ ]+stos %al,(%es:)?\(%edi\) -[ ]+[0-9a-f]+: 2e d7[ ]+xlat %cs:\(%ebx\) -[ ]+[0-9a-f]+: d7[ ]+xlat (%ds:)?\(%ebx\) -[ ]+[0-9a-f]+: d7[ ]+xlat (%ds:)?\(%ebx\) -[ ]+[0-9a-f]+: d7[ ]+xlat (%ds:)?\(%ebx\) -[ ]+[0-9a-f]+: d7[ ]+xlat (%ds:)?\(%ebx\) -[ ]+[0-9a-f]+: d7[ ]+xlat (%ds:)?\(%ebx\) +[ ]+[0-9a-f]+: d7[ ]+xlatb? +(%ds:)?\(%ebx\) +[ ]+[0-9a-f]+: 67 d7[ ]+xlatb? +(%ds:)?\(%bx\) +[ ]+[0-9a-f]+: d7[ ]+xlatb? +(%ds:)?\(%ebx\) +[ ]+[0-9a-f]+: d7[ ]+xlatb? +(%ds:)?\(%ebx\) +[ ]+[0-9a-f]+: d7[ ]+xlatb? +(%ds:)?\(%ebx\) +[ ]+[0-9a-f]+: 2e d7[ ]+xlatb? +%cs:\(%ebx\) [0-9a-f]+ <.*start16>: [ ]+[0-9a-f]+: a6[ ]+cmpsb (%es:)?\(%edi\),(%ds:)?\(%esi\) @@ -63,12 +63,11 @@ Disassembly of section .text: [ ]+[0-9a-f]+: ae[ ]+scas (%es:)?\(%edi\),%al [ ]+[0-9a-f]+: aa[ ]+stos %al,(%es:)?\(%edi\) [ ]+[0-9a-f]+: aa[ ]+stos %al,(%es:)?\(%edi\) -[ ]+[0-9a-f]+: 2e d7[ ]+xlat %cs:\(%ebx\) -[ ]+[0-9a-f]+: d7[ ]+xlat (%ds:)?\(%ebx\) -[ ]+[0-9a-f]+: d7[ ]+xlat (%ds:)?\(%ebx\) [ ]+[0-9a-f]+: d7[ ]+xlat (%ds:)?\(%ebx\) +[ ]+[0-9a-f]+: 67 d7[ ]+xlat (%ds:)?\(%bx\) [ ]+[0-9a-f]+: d7[ ]+xlat (%ds:)?\(%ebx\) [ ]+[0-9a-f]+: d7[ ]+xlat (%ds:)?\(%ebx\) +[ ]+[0-9a-f]+: 2e d7[ ]+xlat %cs:\(%ebx\) [0-9a-f]+ <.*intel16>: [ ]+[0-9a-f]+: a6[ ]+cmpsb (%es:)?\(%edi\),(%ds:)?\(%esi\) diff --git a/gas/testsuite/gas/i386/string-ok.e b/gas/testsuite/gas/i386/string-ok.e index 95dc4d2a83..8ff4115268 100644 --- a/gas/testsuite/gas/i386/string-ok.e +++ b/gas/testsuite/gas/i386/string-ok.e @@ -8,11 +8,6 @@ .*:22: Warning: .* .*:25: Warning: .* .*:28: Warning: .* -.*:31: Warning: .* -.*:32: Warning: .* -.*:33: Warning: .* -.*:34: Warning: .* -.*:35: Warning: .* .*:54: Warning: .* .*:54: Warning: .* @@ -23,8 +18,3 @@ .*:70: Warning: .* .*:73: Warning: .* .*:76: Warning: .* -.*:79: Warning: .* -.*:80: Warning: .* -.*:81: Warning: .* -.*:82: Warning: .* -.*:83: Warning: .* diff --git a/gas/testsuite/gas/i386/string-ok.s b/gas/testsuite/gas/i386/string-ok.s index c7217bca93..2745deacc9 100644 --- a/gas/testsuite/gas/i386/string-ok.s +++ b/gas/testsuite/gas/i386/string-ok.s @@ -27,12 +27,12 @@ start32: stosb %es:(%edi) stosb (%esi) + xlat (%ebx) + xlat (%bx) + xlat %ds:(%ebx) + xlatb + xlatb (%ebx) xlatb %cs:(%ebx) - xlatb (%esi) - xlatb (,%ebx) - xlatb 1(%ebx) - xlatb x(%ebx) - xlatb 0 .code16 start16: @@ -75,12 +75,11 @@ intel32: stos byte ptr es:[edi] stos byte ptr [esi] + xlatb + xlat [bx] + xlat ds:[ebx] + xlat byte ptr [ebx] xlat byte ptr cs:[ebx] - xlat byte ptr [esi] - xlat byte ptr [%ebx*1] - xlat byte ptr [ebx+1] - xlat byte ptr x[ebx] - xlat byte ptr FLAT:0 .code16 intel16: |