summaryrefslogtreecommitdiffstats
path: root/libcpu/i386_disasm.c
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2008-01-22 06:02:31 +0000
committerUlrich Drepper <[email protected]>2008-01-22 06:02:31 +0000
commit4d8bc811506292938ab66120e51c9810e1d21c3d (patch)
treeee5b509cccc686ac5f95cdebd4afa599bdb71cf8 /libcpu/i386_disasm.c
parentc911d5c907edcaf80792be1abac0262439fd9082 (diff)
propagate from branch 'com.redhat.elfutils.roland.pending' (head 6b4ecd4bacd23aaea4922adc10aab7908c45d23e)
to branch 'com.redhat.elfutils' (head 80a9de86977a1031c60888fe4072688434a961be)
Diffstat (limited to 'libcpu/i386_disasm.c')
-rw-r--r--libcpu/i386_disasm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libcpu/i386_disasm.c b/libcpu/i386_disasm.c
index d8bcf9b3..9024571c 100644
--- a/libcpu/i386_disasm.c
+++ b/libcpu/i386_disasm.c
@@ -589,12 +589,22 @@ i386_disasm (const uint8_t **startp, const uint8_t *end, GElf_Addr addr,
#endif
case 0x98:
+ if (prefixes == (has_rex_w | has_rex))
+ {
+ str = "cltq";
+ break;
+ }
if (prefixes & ~has_data16)
goto print_prefix;
str = prefixes & has_data16 ? "cbtw" : "cwtl";
break;
case 0x99:
+ if (prefixes == (has_rex_w | has_rex))
+ {
+ str = "cqto";
+ break;
+ }
if (prefixes & ~has_data16)
goto print_prefix;
str = prefixes & has_data16 ? "cwtd" : "cltd";