diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-11-06 22:05:43 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-11-06 22:05:43 +0000 | 
| commit | 2abbeded9899f634cea29df429e7ab7ae55d22c1 (patch) | |
| tree | 609f5bdee205d818b7c6d292bd0c4cf65141e0e4 /llvm/lib | |
| parent | ee7f1f9914cdce9316b1d68143caf9ccf9c4963c (diff) | |
| download | bcm5719-llvm-2abbeded9899f634cea29df429e7ab7ae55d22c1.tar.gz bcm5719-llvm-2abbeded9899f634cea29df429e7ab7ae55d22c1.zip | |
work-in-progress
llvm-svn: 118358
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.td | 13 | 
1 files changed, 6 insertions, 7 deletions
| diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index 18ea78a00ed..05adb4d9dba 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -1504,9 +1504,9 @@ def : InstAlias<"outl $port", (OUT32ir i8imm:$port)>;  // errors, since its encoding is the most compact.  def : InstAlias<"sldt $mem", (SLDT16m i16mem:$mem)>; -// "rc[lr] X" is an alias for "rcl X, 1"  /* -multiclass RotateAlias<string Mnemonic, string Opc> { +// "shl X, $1" is an alias for "shl X". +multiclass ShiftRotateByOneAlias<string Mnemonic, string Opc> {   def : InstAlias<!strconcat(Mnemonic, "b $op, $$1"),                   (!cast<Instruction>(!strconcat(Opc, "8r1")) GR8:$op)>;   def : InstAlias<!strconcat(Mnemonic, "w $op, $$1"), @@ -1525,13 +1525,12 @@ multiclass RotateAlias<string Mnemonic, string Opc> {                   (!cast<Instruction>(!strconcat(Opc, "64m1")) i64mem:$op)>;  } -defm : RotateAlias<"rcl", "RCL">; -defm : RotateAlias<"rcr", "RCR">; -defm : RotateAlias<"rol", "ROL">; -defm : RotateAlias<"ror", "ROR">; +defm : ShiftRotateByOneAlias<"rcl", "RCL">; +defm : ShiftRotateByOneAlias<"rcr", "RCR">; +defm : ShiftRotateByOneAlias<"rol", "ROL">; +defm : ShiftRotateByOneAlias<"ror", "ROR">;  */ -  // test: We accept "testX <reg>, <mem>" and "testX <mem>, <reg>" as synonyms.  def : InstAlias<"testb $val, $mem", (TEST8rm  GR8 :$val, i8mem :$mem)>;  def : InstAlias<"testw $val, $mem", (TEST16rm GR16:$val, i16mem:$mem)>; | 

