diff options
| author | Misha Brukman <brukman+llvm@gmail.com> | 2003-07-07 22:18:06 +0000 |
|---|---|---|
| committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-07-07 22:18:06 +0000 |
| commit | 25a49f0cf1ce48a677a7bc8bd42e9f627134e5e4 (patch) | |
| tree | b85d2cd1c045547ad34649835befd0da6d57722e /llvm/lib/Target/Sparc | |
| parent | 6aa98680fbabeabbd8fd113612434afb643d0cf5 (diff) | |
| download | bcm5719-llvm-25a49f0cf1ce48a677a7bc8bd42e9f627134e5e4.tar.gz bcm5719-llvm-25a49f0cf1ce48a677a7bc8bd42e9f627134e5e4.zip | |
Removed unnecessary assignment (it was taken care by a superclass) and clarified
some comments.
llvm-svn: 7119
Diffstat (limited to 'llvm/lib/Target/Sparc')
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcV9_F3.td | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/Target/Sparc/SparcV9_F3.td b/llvm/lib/Target/Sparc/SparcV9_F3.td index c23741838bb..f2cd51fbb3b 100644 --- a/llvm/lib/Target/Sparc/SparcV9_F3.td +++ b/llvm/lib/Target/Sparc/SparcV9_F3.td @@ -30,7 +30,6 @@ class F3_rs1rs2 : F3_rs1 { class F3_rs1rs2rd : F3_rs1rs2 { bits<5> rd; set Inst{29-25} = rd; - set Inst{4-0} = rs2; } // F3_rs1simm13 - Common class of instructions that only have rs1 and simm13 @@ -56,7 +55,7 @@ class F3_rs2 : F3 { set Inst{4-0} = rs2; } -// F3_rs2rd - Common class of instructions use rs2 and rd, but not rs1 +// F3_rs2rd - Common class of instructions that use rs2 and rd, but not rs1 class F3_rs2rd : F3_rs2 { bits<5> rd; set Inst{29-25} = rd; @@ -127,8 +126,8 @@ class F3_3<bits<2> opVal, bits<6> op3val, string name> : F3_rs1rs2 { set op3 = op3val; set Name = name; set Inst{29-25} = 0; // don't care - set Inst{13} = 0; - set Inst{12-5} = 0; // don't care + set Inst{13} = 0; // i field = 0 + set Inst{12-5} = 0; // don't care } class F3_4<bits<2> opVal, bits<6> op3Val, string name> : F3_rs1simm13 { @@ -137,7 +136,7 @@ class F3_4<bits<2> opVal, bits<6> op3Val, string name> : F3_rs1simm13 { set op3 = op3Val; set Name = name; set Inst{29-25} = 0; // don't care - set Inst{13} = 1; + set Inst{13} = 1; // i field = 1 set Inst{12-0} = simm; } @@ -148,7 +147,7 @@ class F3_5<bits<2> opVal, bits<6> op3Val, bits<3> rcondVal, set Name = name; set Inst{13} = 0; // i field = 0 set Inst{12-10} = rcondVal; // rcond field - set Inst{9-5} = 0; // don't care + set Inst{9-5} = 0; // don't care } class F3_6<bits<2> opVal, bits<6> op3Val, bits<3> rcondVal, |

