From d0ed3a417e5b94da89f05e0ffb60359b8ea6ee0c Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 22 Jul 2013 07:47:51 +0000 Subject: [PATCH] Reverse operands for Intel syntax form of 'bt' alias. llvm-svn: 186809 --- llvm/lib/Target/X86/X86InstrInfo.td | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index f33ae2a1915a..d58f4aa8ce11 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -1969,7 +1969,8 @@ def : InstAlias<"aad", (AAD8i8 10)>; def : InstAlias<"aam", (AAM8i8 10)>; // Disambiguate the mem/imm form of bt-without-a-suffix as btl. -def : InstAlias<"bt $imm, $mem", (BT32mi8 i32mem:$mem, i32i8imm:$imm)>; +def : InstAlias<"bt {$imm, $mem|$mem, $imm}", + (BT32mi8 i32mem:$mem, i32i8imm:$imm), 0>; // clr aliases. def : InstAlias<"clrb $reg", (XOR8rr GR8 :$reg, GR8 :$reg)>;