1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

MC/X86: Add alias for movzx.

llvm-svn: 105005
This commit is contained in:
Kevin Enderby 2010-05-28 21:20:21 +00:00
parent 922954fe32
commit fbd982b12f
2 changed files with 14 additions and 0 deletions

View File

@ -645,6 +645,7 @@ ParseInstruction(const StringRef &Name, SMLoc NameLoc,
.Case("cmovnzl", "cmovnel")
.Case("cmovzl", "cmovel")
.Case("fwait", "wait")
.Case("movzx", "movzb")
.Default(Name);
// FIXME: Hack to recognize cmp<comparison code>{ss,sd,ps,pd}.

View File

@ -131,3 +131,16 @@ movl 0, %eax // CHECK: movl 0, %eax # encoding: [0x8b,0x04,0x25,A,A,A,A]
btq $0x01,%rdx
// CHECK: btq $1, %rdx
// CHECK: encoding: [0x48,0x0f,0xba,0xe2,0x01]
//rdar://8017633
// CHECK: movzbl %al, %esi
// CHECK: encoding: [0x0f,0xb6,0xf0]
movzx %al, %esi
// CHECK: movzbq %al, %rsi
// CHECK: encoding: [0x48,0x0f,0xb6,0xf0]
movzx %al, %rsi
// CHECK: movzbq (%rsp), %rsi
// CHECK: encoding: [0x48,0x0f,0xb6,0x34,0x24]
movzx 0(%rsp), %rsi