diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-01-12 16:04:11 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-01-12 16:04:11 +0000 |
commit | c7532693f2dc4939e87175093559b998022cb835 (patch) | |
tree | 3f348bcd60c64e067ce80f15649160701cea3b61 /opcodes | |
parent | 460e679b1285e11e1c05093a6447d40960dffa3b (diff) | |
download | binutils-c7532693f2dc4939e87175093559b998022cb835.zip binutils-c7532693f2dc4939e87175093559b998022cb835.tar.gz binutils-c7532693f2dc4939e87175093559b998022cb835.tar.bz2 |
gas/testsuite/
2009-01-12 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/opts.s: Add tests for add, adc, and, cmp, or, sbb,
sub and xor.
* gas/i386/x86-64-opts.s: Likewise.
* gas/i386/opts.d: Updated.
* gas/i386/opts-intel.d: Likewise.
* gas/i386/x86-64-opts.d: Likewise.
* gas/i386/x86-64-opts-intel.d: Likewise.
opcodes/
2009-01-12 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (dis386): Use EbS on addB, orB, adcB, sbbB, andB,
subB, xorB and cmpB. Use EvS on addS, orS, adcS, sbbS, andS,
subS, xorS and cmpS.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 6 | ||||
-rw-r--r-- | opcodes/i386-dis.c | 32 |
2 files changed, 22 insertions, 16 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index ec0952e..f8ddf48 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2009-01-12 H.J. Lu <hongjiu.lu@intel.com> + + * i386-dis.c (dis386): Use EbS on addB, orB, adcB, sbbB, andB, + subB, xorB and cmpB. Use EvS on addS, orS, adcS, sbbS, andS, + subS, xorS and cmpS. + 2009-01-10 H.J. Lu <hongjiu.lu@intel.com> * i386-gen.c (cpu_flag_init): Replace CpuP4 and CpuK6 with diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 43119f8..434ecfc 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -1310,8 +1310,8 @@ static const struct dis386 dis386[] = { /* 00 */ { "addB", { Eb, Gb } }, { "addS", { Ev, Gv } }, - { "addB", { Gb, Eb } }, - { "addS", { Gv, Ev } }, + { "addB", { Gb, EbS } }, + { "addS", { Gv, EvS } }, { "addB", { AL, Ib } }, { "addS", { eAX, Iv } }, { X86_64_TABLE (X86_64_06) }, @@ -1319,8 +1319,8 @@ static const struct dis386 dis386[] = { /* 08 */ { "orB", { Eb, Gb } }, { "orS", { Ev, Gv } }, - { "orB", { Gb, Eb } }, - { "orS", { Gv, Ev } }, + { "orB", { Gb, EbS } }, + { "orS", { Gv, EvS } }, { "orB", { AL, Ib } }, { "orS", { eAX, Iv } }, { X86_64_TABLE (X86_64_0D) }, @@ -1328,8 +1328,8 @@ static const struct dis386 dis386[] = { /* 10 */ { "adcB", { Eb, Gb } }, { "adcS", { Ev, Gv } }, - { "adcB", { Gb, Eb } }, - { "adcS", { Gv, Ev } }, + { "adcB", { Gb, EbS } }, + { "adcS", { Gv, EvS } }, { "adcB", { AL, Ib } }, { "adcS", { eAX, Iv } }, { X86_64_TABLE (X86_64_16) }, @@ -1337,8 +1337,8 @@ static const struct dis386 dis386[] = { /* 18 */ { "sbbB", { Eb, Gb } }, { "sbbS", { Ev, Gv } }, - { "sbbB", { Gb, Eb } }, - { "sbbS", { Gv, Ev } }, + { "sbbB", { Gb, EbS } }, + { "sbbS", { Gv, EvS } }, { "sbbB", { AL, Ib } }, { "sbbS", { eAX, Iv } }, { X86_64_TABLE (X86_64_1E) }, @@ -1346,8 +1346,8 @@ static const struct dis386 dis386[] = { /* 20 */ { "andB", { Eb, Gb } }, { "andS", { Ev, Gv } }, - { "andB", { Gb, Eb } }, - { "andS", { Gv, Ev } }, + { "andB", { Gb, EbS } }, + { "andS", { Gv, EvS } }, { "andB", { AL, Ib } }, { "andS", { eAX, Iv } }, { "(bad)", { XX } }, /* SEG ES prefix */ @@ -1355,8 +1355,8 @@ static const struct dis386 dis386[] = { /* 28 */ { "subB", { Eb, Gb } }, { "subS", { Ev, Gv } }, - { "subB", { Gb, Eb } }, - { "subS", { Gv, Ev } }, + { "subB", { Gb, EbS } }, + { "subS", { Gv, EvS } }, { "subB", { AL, Ib } }, { "subS", { eAX, Iv } }, { "(bad)", { XX } }, /* SEG CS prefix */ @@ -1364,8 +1364,8 @@ static const struct dis386 dis386[] = { /* 30 */ { "xorB", { Eb, Gb } }, { "xorS", { Ev, Gv } }, - { "xorB", { Gb, Eb } }, - { "xorS", { Gv, Ev } }, + { "xorB", { Gb, EbS } }, + { "xorS", { Gv, EvS } }, { "xorB", { AL, Ib } }, { "xorS", { eAX, Iv } }, { "(bad)", { XX } }, /* SEG SS prefix */ @@ -1373,8 +1373,8 @@ static const struct dis386 dis386[] = { /* 38 */ { "cmpB", { Eb, Gb } }, { "cmpS", { Ev, Gv } }, - { "cmpB", { Gb, Eb } }, - { "cmpS", { Gv, Ev } }, + { "cmpB", { Gb, EbS } }, + { "cmpS", { Gv, EvS } }, { "cmpB", { AL, Ib } }, { "cmpS", { eAX, Iv } }, { "(bad)", { XX } }, /* SEG DS prefix */ |