From 6cee4cdae4e52a8fce7f3bba86cc6fa79720e977 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 14 Sep 2009 22:02:26 +0000 Subject: [PATCH] gas/ 2009-09-14 H.J. Lu PR gas/10637 * config/tc-i386-intel.c (intel_state): Add has_offset. (i386_intel_simplify): Set intel_state.has_offset to 1 for O_offset. (i386_intel_operand): Turn on intel_state.is_mem if intel_state.has_offset is 0 and the last char is ']'. gas/testsuite/ 2009-09-14 H.J. Lu PR gas/10637 * gas/i386/disp.s: Add tests for Intel syntax. * gas/i386/x86-64-disp.s: Likewise. * gas/i386/disp.d: Updated. * gas/i386/intelok.d: Likewise. * gas/i386/x86-64-disp.d: Likewise. * gas/i386/disp-intel.d: New. * gas/i386/x86-64-disp-intel.d: Likewise. * gas/i386/i386.exp: Run disp-intel and x86-64-disp-intel. --- gas/ChangeLog | 9 +++++ gas/config/tc-i386-intel.c | 6 +++ gas/testsuite/ChangeLog | 15 ++++++++ gas/testsuite/gas/i386/disp-intel.d | 43 ++++++++++++++++++++++ gas/testsuite/gas/i386/disp.d | 24 ++++++++++++ gas/testsuite/gas/i386/disp.s | 30 +++++++++++++++ gas/testsuite/gas/i386/i386.exp | 2 + gas/testsuite/gas/i386/intelok.d | 4 +- gas/testsuite/gas/i386/x86-64-disp-intel.d | 39 ++++++++++++++++++++ gas/testsuite/gas/i386/x86-64-disp.d | 19 ++++++++++ gas/testsuite/gas/i386/x86-64-disp.s | 26 +++++++++++++ 11 files changed, 215 insertions(+), 2 deletions(-) create mode 100644 gas/testsuite/gas/i386/disp-intel.d create mode 100644 gas/testsuite/gas/i386/x86-64-disp-intel.d diff --git a/gas/ChangeLog b/gas/ChangeLog index 1c489156bdd..0459ce106a3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,12 @@ +2009-09-14 H.J. Lu + + PR gas/10637 + * config/tc-i386-intel.c (intel_state): Add has_offset. + (i386_intel_simplify): Set intel_state.has_offset to 1 for + O_offset. + (i386_intel_operand): Turn on intel_state.is_mem if + intel_state.has_offset is 0 and the last char is ']'. + 2009-09-14 H.J. Lu PR gas/10636 diff --git a/gas/config/tc-i386-intel.c b/gas/config/tc-i386-intel.c index ff20874b3f5..0c37e4503e8 100644 --- a/gas/config/tc-i386-intel.c +++ b/gas/config/tc-i386-intel.c @@ -23,6 +23,7 @@ static struct { operatorT op_modifier; /* Operand modifier. */ int is_mem; /* 1 if operand is memory reference. */ + int has_offset; /* 1 if operand has offset. */ unsigned int in_offset; /* >=1 if processing operand of offset. */ unsigned int in_bracket; /* >=1 if processing operand in brackets. */ unsigned int in_scale; /* >=1 if processing multipication operand @@ -279,6 +280,7 @@ static int i386_intel_simplify (expressionS *e) break; case O_offset: + intel_state.has_offset = 1; ++intel_state.in_offset; ret = i386_intel_simplify_symbol (e->X_add_symbol); --intel_state.in_offset; @@ -497,6 +499,10 @@ i386_intel_operand (char *operand_string, int got_a_float) as_bad (_("invalid expression")); ret = 0; } + else if (!intel_state.has_offset + && input_line_pointer > buf + && *(input_line_pointer - 1) == ']') + intel_state.is_mem |= 1; input_line_pointer = saved_input_line_pointer; free (buf); diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 3b799430b1b..ceff29a12fc 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,18 @@ +2009-09-14 H.J. Lu + + PR gas/10637 + * gas/i386/disp.s: Add tests for Intel syntax. + * gas/i386/x86-64-disp.s: Likewise. + + * gas/i386/disp.d: Updated. + * gas/i386/intelok.d: Likewise. + * gas/i386/x86-64-disp.d: Likewise. + + * gas/i386/disp-intel.d: New. + * gas/i386/x86-64-disp-intel.d: Likewise. + + * gas/i386/i386.exp: Run disp-intel and x86-64-disp-intel. + 2009-09-14 H.J. Lu * gas/i386/merom.[ds]: Renamed to ... diff --git a/gas/testsuite/gas/i386/disp-intel.d b/gas/testsuite/gas/i386/disp-intel.d new file mode 100644 index 00000000000..2ab09dcd3d2 --- /dev/null +++ b/gas/testsuite/gas/i386/disp-intel.d @@ -0,0 +1,43 @@ +#source: disp.s +#objdump: -dw -Mintel +#name: i386 displacement (Intel mode) + +.*: +file format .* + +Disassembly of section .text: + +0+ <.text>: +[ ]*[a-f0-9]+: 8b 98 ff ff ff 7f mov ebx,DWORD PTR \[eax\+0x7fffffff\] +[ ]*[a-f0-9]+: 8b 98 00 00 00 80 mov ebx,DWORD PTR \[eax-0x80000000\] +[ ]*[a-f0-9]+: 8b 98 00 00 00 80 mov ebx,DWORD PTR \[eax-0x80000000\] +[ ]*[a-f0-9]+: 8b 1d ff ff ff 7f mov ebx,DWORD PTR ds:0x7fffffff +[ ]*[a-f0-9]+: 8b 1d 00 00 00 80 mov ebx,DWORD PTR ds:0x80000000 +[ ]*[a-f0-9]+: 8b 1d 00 00 00 80 mov ebx,DWORD PTR ds:0x80000000 +[ ]*[a-f0-9]+: a1 ff ff ff 7f mov eax,ds:0x7fffffff +[ ]*[a-f0-9]+: a1 00 00 00 80 mov eax,ds:0x80000000 +[ ]*[a-f0-9]+: a1 00 00 00 80 mov eax,ds:0x80000000 +[ ]*[a-f0-9]+: 89 98 f0 00 e0 0e mov DWORD PTR \[eax\+0xee000f0\],ebx +[ ]*[a-f0-9]+: 89 98 f0 00 e0 0e mov DWORD PTR \[eax\+0xee000f0\],ebx +[ ]*[a-f0-9]+: 65 89 98 f0 00 e0 0e mov DWORD PTR gs:\[eax\+0xee000f0\],ebx +[ ]*[a-f0-9]+: 65 89 98 f0 00 e0 0e mov DWORD PTR gs:\[eax\+0xee000f0\],ebx +[ ]*[a-f0-9]+: 89 1d f0 00 e0 0e mov DWORD PTR ds:0xee000f0,ebx +[ ]*[a-f0-9]+: 65 89 1d f0 00 e0 0e mov DWORD PTR gs:0xee000f0,ebx +[ ]*[a-f0-9]+: 89 1d f0 00 e0 fe mov DWORD PTR ds:0xfee000f0,ebx +[ ]*[a-f0-9]+: 65 89 1d f0 00 e0 fe mov DWORD PTR gs:0xfee000f0,ebx +[ ]*[a-f0-9]+: a3 f0 00 e0 0e mov ds:0xee000f0,eax +[ ]*[a-f0-9]+: 65 a3 f0 00 e0 0e mov gs:0xee000f0,eax +[ ]*[a-f0-9]+: a3 f0 00 e0 fe mov ds:0xfee000f0,eax +[ ]*[a-f0-9]+: 65 a3 f0 00 e0 fe mov gs:0xfee000f0,eax +[ ]*[a-f0-9]+: 65 8b 1d f0 00 e0 0e mov ebx,DWORD PTR gs:0xee000f0 +[ ]*[a-f0-9]+: 8b 1d f0 00 e0 0e mov ebx,DWORD PTR ds:0xee000f0 +[ ]*[a-f0-9]+: 8b 1d f0 00 e0 0e mov ebx,DWORD PTR ds:0xee000f0 +[ ]*[a-f0-9]+: 65 8b 1d f0 00 e0 fe mov ebx,DWORD PTR gs:0xfee000f0 +[ ]*[a-f0-9]+: 8b 1d f0 00 e0 fe mov ebx,DWORD PTR ds:0xfee000f0 +[ ]*[a-f0-9]+: 8b 1d f0 00 e0 fe mov ebx,DWORD PTR ds:0xfee000f0 +[ ]*[a-f0-9]+: 65 a1 f0 00 e0 0e mov eax,gs:0xee000f0 +[ ]*[a-f0-9]+: a1 f0 00 e0 0e mov eax,ds:0xee000f0 +[ ]*[a-f0-9]+: a1 f0 00 e0 0e mov eax,ds:0xee000f0 +[ ]*[a-f0-9]+: 65 a1 f0 00 e0 fe mov eax,gs:0xfee000f0 +[ ]*[a-f0-9]+: a1 f0 00 e0 fe mov eax,ds:0xfee000f0 +[ ]*[a-f0-9]+: a1 f0 00 e0 fe mov eax,ds:0xfee000f0 +#pass diff --git a/gas/testsuite/gas/i386/disp.d b/gas/testsuite/gas/i386/disp.d index f2b16abc263..349ce2cde30 100644 --- a/gas/testsuite/gas/i386/disp.d +++ b/gas/testsuite/gas/i386/disp.d @@ -16,4 +16,28 @@ Disassembly of section .text: [ ]*[a-f0-9]+: a1 ff ff ff 7f mov 0x7fffffff,%eax [ ]*[a-f0-9]+: a1 00 00 00 80 mov 0x80000000,%eax [ ]*[a-f0-9]+: a1 00 00 00 80 mov 0x80000000,%eax +[ ]*[a-f0-9]+: 89 98 f0 00 e0 0e mov %ebx,0xee000f0\(%eax\) +[ ]*[a-f0-9]+: 89 98 f0 00 e0 0e mov %ebx,0xee000f0\(%eax\) +[ ]*[a-f0-9]+: 65 89 98 f0 00 e0 0e mov %ebx,%gs:0xee000f0\(%eax\) +[ ]*[a-f0-9]+: 65 89 98 f0 00 e0 0e mov %ebx,%gs:0xee000f0\(%eax\) +[ ]*[a-f0-9]+: 89 1d f0 00 e0 0e mov %ebx,0xee000f0 +[ ]*[a-f0-9]+: 65 89 1d f0 00 e0 0e mov %ebx,%gs:0xee000f0 +[ ]*[a-f0-9]+: 89 1d f0 00 e0 fe mov %ebx,0xfee000f0 +[ ]*[a-f0-9]+: 65 89 1d f0 00 e0 fe mov %ebx,%gs:0xfee000f0 +[ ]*[a-f0-9]+: a3 f0 00 e0 0e mov %eax,0xee000f0 +[ ]*[a-f0-9]+: 65 a3 f0 00 e0 0e mov %eax,%gs:0xee000f0 +[ ]*[a-f0-9]+: a3 f0 00 e0 fe mov %eax,0xfee000f0 +[ ]*[a-f0-9]+: 65 a3 f0 00 e0 fe mov %eax,%gs:0xfee000f0 +[ ]*[a-f0-9]+: 65 8b 1d f0 00 e0 0e mov %gs:0xee000f0,%ebx +[ ]*[a-f0-9]+: 8b 1d f0 00 e0 0e mov 0xee000f0,%ebx +[ ]*[a-f0-9]+: 8b 1d f0 00 e0 0e mov 0xee000f0,%ebx +[ ]*[a-f0-9]+: 65 8b 1d f0 00 e0 fe mov %gs:0xfee000f0,%ebx +[ ]*[a-f0-9]+: 8b 1d f0 00 e0 fe mov 0xfee000f0,%ebx +[ ]*[a-f0-9]+: 8b 1d f0 00 e0 fe mov 0xfee000f0,%ebx +[ ]*[a-f0-9]+: 65 a1 f0 00 e0 0e mov %gs:0xee000f0,%eax +[ ]*[a-f0-9]+: a1 f0 00 e0 0e mov 0xee000f0,%eax +[ ]*[a-f0-9]+: a1 f0 00 e0 0e mov 0xee000f0,%eax +[ ]*[a-f0-9]+: 65 a1 f0 00 e0 fe mov %gs:0xfee000f0,%eax +[ ]*[a-f0-9]+: a1 f0 00 e0 fe mov 0xfee000f0,%eax +[ ]*[a-f0-9]+: a1 f0 00 e0 fe mov 0xfee000f0,%eax #pass diff --git a/gas/testsuite/gas/i386/disp.s b/gas/testsuite/gas/i386/disp.s index d2917b7311a..993ea67b3b6 100644 --- a/gas/testsuite/gas/i386/disp.s +++ b/gas/testsuite/gas/i386/disp.s @@ -8,3 +8,33 @@ mov 0x7fffffff,%eax mov 0x80000000,%eax mov -0x80000000,%eax + + .intel_syntax noprefix + mov DWORD PTR [eax+0xEE000F0], ebx + mov [eax+0xEE000F0], ebx + mov DWORD PTR gs:[eax+0xEE000F0], ebx + mov gs:[eax+0xEE000F0], ebx + + mov DWORD PTR [0xEE000F0], ebx + mov DWORD PTR gs:0xEE000F0, ebx + mov DWORD PTR [0xFEE000F0], ebx + mov DWORD PTR gs:0xFEE000F0, ebx + + mov DWORD PTR [0xEE000F0], eax + mov DWORD PTR gs:0xEE000F0, eax + mov DWORD PTR [0xFEE000F0], eax + mov DWORD PTR gs:0xFEE000F0, eax + + mov ebx, DWORD PTR gs:0xEE000F0 + mov ebx, DWORD PTR [0xEE000F0] + mov ebx, [0xEE000F0] + mov ebx, DWORD PTR gs:0xFEE000F0 + mov ebx, DWORD PTR [0xFEE000F0] + mov ebx, [0xFEE000F0] + + mov eax, DWORD PTR gs:0xEE000F0 + mov eax, DWORD PTR [0xEE000F0] + mov eax, [0xEE000F0] + mov eax, DWORD PTR gs:0xFEE000F0 + mov eax, DWORD PTR [0xFEE000F0] + mov eax, [0xFEE000F0] diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index c93ebc20fbf..58e31dae862 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -48,6 +48,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] run_dump_test "sib" run_dump_test "sib-intel" run_dump_test "disp" + run_dump_test "disp-intel" run_dump_test "vmx" run_dump_test "smx" run_dump_test "suffix" @@ -282,6 +283,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t run_dump_test "x86-64-sib" run_dump_test "x86-64-sib-intel" run_dump_test "x86-64-disp" + run_dump_test "x86-64-disp-intel" if { ![istarget "*-*-mingw*"] } then { run_dump_test "x86-64-opcode-inval" run_dump_test "x86-64-opcode-inval-intel" diff --git a/gas/testsuite/gas/i386/intelok.d b/gas/testsuite/gas/i386/intelok.d index e4ede94f624..7a958d574b2 100644 --- a/gas/testsuite/gas/i386/intelok.d +++ b/gas/testsuite/gas/i386/intelok.d @@ -169,9 +169,9 @@ Disassembly of section .text: [ ]*[0-9a-f]+: 6a 03[ ]+push[ ]+0x3 [ ]*[0-9a-f]+: 6a 04[ ]+push[ ]+0x4 [ ]*[0-9a-f]+: b8 01 00 00 00[ ]+mov[ ]+eax,(0x)?1 +[ ]*[0-9a-f]+: a1 01 00 00 00[ ]+mov[ ]+eax,ds:(0x)?1 [ ]*[0-9a-f]+: b8 01 00 00 00[ ]+mov[ ]+eax,(0x)?1 -[ ]*[0-9a-f]+: b8 01 00 00 00[ ]+mov[ ]+eax,(0x)?1 -[ ]*[0-9a-f]+: b8 01 00 00 00[ ]+mov[ ]+eax,(0x)?1 +[ ]*[0-9a-f]+: a1 01 00 00 00[ ]+mov[ ]+eax,ds:(0x)?1 [ ]*[0-9a-f]+: b8 00 00 00 00[ ]+mov[ ]+eax,(0x)?0 [ ]*[0-9a-f]+: b8 00 00 00 00[ ]+mov[ ]+eax,(0x)?0 [ ]*[0-9a-f]+: b8 00 00 00 00[ ]+mov[ ]+eax,(0x)?0 diff --git a/gas/testsuite/gas/i386/x86-64-disp-intel.d b/gas/testsuite/gas/i386/x86-64-disp-intel.d new file mode 100644 index 00000000000..8f952552b00 --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-disp-intel.d @@ -0,0 +1,39 @@ +#source: x86-64-disp.s +#as: -J +#objdump: -dw -Mintel +#name: x86-64 displacement (Intel mode) + +.*: +file format .* + +Disassembly of section .text: + +0+ <.text>: +[ ]*[a-f0-9]+: 8b 98 ff ff ff 7f mov ebx,DWORD PTR \[rax\+0x7fffffff\] +[ ]*[a-f0-9]+: 8b 98 00 00 00 80 mov ebx,DWORD PTR \[rax-0x80000000\] +[ ]*[a-f0-9]+: 8b 1c 25 00 00 00 80 mov ebx,DWORD PTR ds:0xffffffff80000000 +[ ]*[a-f0-9]+: 8b 1c 25 00 00 00 80 mov ebx,DWORD PTR ds:0xffffffff80000000 +[ ]*[a-f0-9]+: 8b 1c 25 ff ff ff 7f mov ebx,DWORD PTR ds:0x7fffffff +[ ]*[a-f0-9]+: 8b 04 25 00 00 00 80 mov eax,DWORD PTR ds:0xffffffff80000000 +[ ]*[a-f0-9]+: 8b 04 25 00 00 00 80 mov eax,DWORD PTR ds:0xffffffff80000000 +[ ]*[a-f0-9]+: 8b 04 25 ff ff ff 7f mov eax,DWORD PTR ds:0x7fffffff +[ ]*[a-f0-9]+: a1 00 00 00 80 00 00 00 00 mov eax,ds:0x80000000 +[ ]*[a-f0-9]+: 89 98 f0 00 e0 0e mov DWORD PTR \[rax\+0xee000f0\],ebx +[ ]*[a-f0-9]+: 89 98 f0 00 e0 0e mov DWORD PTR \[rax\+0xee000f0\],ebx +[ ]*[a-f0-9]+: 65 89 98 f0 00 e0 0e mov DWORD PTR gs:\[rax\+0xee000f0\],ebx +[ ]*[a-f0-9]+: 65 89 98 f0 00 e0 0e mov DWORD PTR gs:\[rax\+0xee000f0\],ebx +[ ]*[a-f0-9]+: 89 1c 25 f0 00 e0 0e mov DWORD PTR ds:0xee000f0,ebx +[ ]*[a-f0-9]+: 65 89 1c 25 f0 00 e0 0e mov DWORD PTR gs:0xee000f0,ebx +[ ]*[a-f0-9]+: 89 04 25 f0 00 e0 0e mov DWORD PTR ds:0xee000f0,eax +[ ]*[a-f0-9]+: 65 89 04 25 f0 00 e0 0e mov DWORD PTR gs:0xee000f0,eax +[ ]*[a-f0-9]+: a3 f0 00 e0 fe 00 00 00 00 mov ds:0xfee000f0,eax +[ ]*[a-f0-9]+: 65 a3 f0 00 e0 fe 00 00 00 00 mov gs:0xfee000f0,eax +[ ]*[a-f0-9]+: 65 8b 1c 25 f0 00 e0 0e mov ebx,DWORD PTR gs:0xee000f0 +[ ]*[a-f0-9]+: 8b 1c 25 f0 00 e0 0e mov ebx,DWORD PTR ds:0xee000f0 +[ ]*[a-f0-9]+: 8b 1c 25 f0 00 e0 0e mov ebx,DWORD PTR ds:0xee000f0 +[ ]*[a-f0-9]+: 65 8b 04 25 f0 00 e0 0e mov eax,DWORD PTR gs:0xee000f0 +[ ]*[a-f0-9]+: 8b 04 25 f0 00 e0 0e mov eax,DWORD PTR ds:0xee000f0 +[ ]*[a-f0-9]+: 8b 04 25 f0 00 e0 0e mov eax,DWORD PTR ds:0xee000f0 +[ ]*[a-f0-9]+: 65 a1 f0 00 e0 fe 00 00 00 00 mov eax,gs:0xfee000f0 +[ ]*[a-f0-9]+: a1 f0 00 e0 fe 00 00 00 00 mov eax,ds:0xfee000f0 +[ ]*[a-f0-9]+: a1 f0 00 e0 fe 00 00 00 00 mov eax,ds:0xfee000f0 +#pass diff --git a/gas/testsuite/gas/i386/x86-64-disp.d b/gas/testsuite/gas/i386/x86-64-disp.d index 770ad773086..b7d63d3286b 100644 --- a/gas/testsuite/gas/i386/x86-64-disp.d +++ b/gas/testsuite/gas/i386/x86-64-disp.d @@ -16,4 +16,23 @@ Disassembly of section .text: [ ]*[a-f0-9]+: 8b 04 25 00 00 00 80 mov 0xffffffff80000000,%eax [ ]*[a-f0-9]+: 8b 04 25 ff ff ff 7f mov 0x7fffffff,%eax [ ]*[a-f0-9]+: a1 00 00 00 80 00 00 00 00 mov 0x80000000,%eax +[ ]*[a-f0-9]+: 89 98 f0 00 e0 0e mov %ebx,0xee000f0\(%rax\) +[ ]*[a-f0-9]+: 89 98 f0 00 e0 0e mov %ebx,0xee000f0\(%rax\) +[ ]*[a-f0-9]+: 65 89 98 f0 00 e0 0e mov %ebx,%gs:0xee000f0\(%rax\) +[ ]*[a-f0-9]+: 65 89 98 f0 00 e0 0e mov %ebx,%gs:0xee000f0\(%rax\) +[ ]*[a-f0-9]+: 89 1c 25 f0 00 e0 0e mov %ebx,0xee000f0 +[ ]*[a-f0-9]+: 65 89 1c 25 f0 00 e0 0e mov %ebx,%gs:0xee000f0 +[ ]*[a-f0-9]+: 89 04 25 f0 00 e0 0e mov %eax,0xee000f0 +[ ]*[a-f0-9]+: 65 89 04 25 f0 00 e0 0e mov %eax,%gs:0xee000f0 +[ ]*[a-f0-9]+: a3 f0 00 e0 fe 00 00 00 00 mov %eax,0xfee000f0 +[ ]*[a-f0-9]+: 65 a3 f0 00 e0 fe 00 00 00 00 mov %eax,%gs:0xfee000f0 +[ ]*[a-f0-9]+: 65 8b 1c 25 f0 00 e0 0e mov %gs:0xee000f0,%ebx +[ ]*[a-f0-9]+: 8b 1c 25 f0 00 e0 0e mov 0xee000f0,%ebx +[ ]*[a-f0-9]+: 8b 1c 25 f0 00 e0 0e mov 0xee000f0,%ebx +[ ]*[a-f0-9]+: 65 8b 04 25 f0 00 e0 0e mov %gs:0xee000f0,%eax +[ ]*[a-f0-9]+: 8b 04 25 f0 00 e0 0e mov 0xee000f0,%eax +[ ]*[a-f0-9]+: 8b 04 25 f0 00 e0 0e mov 0xee000f0,%eax +[ ]*[a-f0-9]+: 65 a1 f0 00 e0 fe 00 00 00 00 mov %gs:0xfee000f0,%eax +[ ]*[a-f0-9]+: a1 f0 00 e0 fe 00 00 00 00 mov 0xfee000f0,%eax +[ ]*[a-f0-9]+: a1 f0 00 e0 fe 00 00 00 00 mov 0xfee000f0,%eax #pass diff --git a/gas/testsuite/gas/i386/x86-64-disp.s b/gas/testsuite/gas/i386/x86-64-disp.s index aaac1d740c9..b3f10283abe 100644 --- a/gas/testsuite/gas/i386/x86-64-disp.s +++ b/gas/testsuite/gas/i386/x86-64-disp.s @@ -1,3 +1,4 @@ + .text mov 0x7fffffff(%rax),%ebx mov -0x80000000(%rax),%ebx mov -0x80000000,%ebx @@ -7,3 +8,28 @@ mov 0xffffffff80000000,%eax mov 0x7fffffff,%eax mov 0x80000000,%eax + + .intel_syntax noprefix + mov DWORD PTR [rax+0xEE000F0], ebx + mov [rax+0xEE000F0], ebx + mov DWORD PTR gs:[rax+0xEE000F0], ebx + mov gs:[rax+0xEE000F0], ebx + + mov DWORD PTR [0xEE000F0], ebx + mov DWORD PTR gs:0xEE000F0, ebx + + mov DWORD PTR [0xEE000F0], eax + mov DWORD PTR gs:0xEE000F0, eax + mov DWORD PTR [0xFEE000F0], eax + mov DWORD PTR gs:0xFEE000F0, eax + + mov ebx, DWORD PTR gs:0xEE000F0 + mov ebx, DWORD PTR [0xEE000F0] + mov ebx, [0xEE000F0] + + mov eax, DWORD PTR gs:0xEE000F0 + mov eax, DWORD PTR [0xEE000F0] + mov eax, [0xEE000F0] + mov eax, DWORD PTR gs:0xFEE000F0 + mov eax, DWORD PTR [0xFEE000F0] + mov eax, [0xFEE000F0] -- 2.30.2