diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-07 04:26:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-07 04:26:57 +0000 |
commit | a562efce355618a02a23ebd3e26d277b26d4e8d5 (patch) | |
tree | d4ca672e1bd7a66fb00e0e77c026dc6cbfd66af5 /lib/Target/Sparc | |
parent | 6a135f2e8cb2a3ce291ea7adc73cc0fc50b8ed1c (diff) |
Fix encoding of existing shift instructions, add rr shifts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/SparcInstrInfo.td | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td index ae4e9e648b..8764d4e887 100644 --- a/lib/Target/Sparc/SparcInstrInfo.td +++ b/lib/Target/Sparc/SparcInstrInfo.td @@ -83,9 +83,12 @@ def XORrr : F3_1<2, 0b000011, "xor">; def XORri : F3_2<2, 0b000011, "xor">; // Section B.12 - Shift Instructions, p. 107 -def SLLri : F3_1<2, 0b100101, "sll">; -def SRLri : F3_1<2, 0b100110, "srl">; -def SRAri : F3_1<2, 0b100111, "sra">; +def SLLrr : F3_1<2, 0b100101, "sll">; +def SLLri : F3_2<2, 0b100101, "sll">; +def SRLrr : F3_1<2, 0b100110, "srl">; +def SRLri : F3_2<2, 0b100110, "srl">; +def SRArr : F3_1<2, 0b100111, "sra">; +def SRAri : F3_2<2, 0b100111, "sra">; // Section B.13 - Add Instructions, p. 108 def ADDrr : F3_1<2, 0b000000, "add">; |