diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-11-24 12:02:46 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-11-24 12:02:46 +0000 |
commit | 9d399b1fc2f7dfad72f5ff3328983acb805eaf10 (patch) | |
tree | 439ee9c127060a9a735ca7d3b1a9971b37340325 | |
parent | 4aae4f90071f64854ec771496bd164149b0a1352 (diff) | |
download | llvm-9d399b1fc2f7dfad72f5ff3328983acb805eaf10.tar.gz llvm-9d399b1fc2f7dfad72f5ff3328983acb805eaf10.tar.bz2 llvm-9d399b1fc2f7dfad72f5ff3328983acb805eaf10.tar.xz |
X86: alias cqo to cqto.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145121 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86InstrInfo.td | 3 | ||||
-rw-r--r-- | test/MC/X86/x86-64.s | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index 79ce509412..35631d50f4 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -1523,10 +1523,11 @@ def : MnemonicAlias<"call", "calll">, Requires<[In32BitMode]>; def : MnemonicAlias<"call", "callq">, Requires<[In64BitMode]>; def : MnemonicAlias<"cbw", "cbtw">; +def : MnemonicAlias<"cwde", "cwtl">; def : MnemonicAlias<"cwd", "cwtd">; def : MnemonicAlias<"cdq", "cltd">; -def : MnemonicAlias<"cwde", "cwtl">; def : MnemonicAlias<"cdqe", "cltq">; +def : MnemonicAlias<"cqo", "cqto">; // lret maps to lretl, it is not ambiguous with lretq. def : MnemonicAlias<"lret", "lretl">; diff --git a/test/MC/X86/x86-64.s b/test/MC/X86/x86-64.s index 6c836fca90..4ec579a7a1 100644 --- a/test/MC/X86/x86-64.s +++ b/test/MC/X86/x86-64.s @@ -459,6 +459,7 @@ cwtl // CHECK: cwtl cbw // CHECK: cbtw cwd // CHECK: cwtd cdq // CHECK: cltd +cqo // CHECK: cqto // rdar://8456378 and PR7557 - fstsw fstsw %ax |