diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-12-17 08:08:42 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-12-17 08:08:42 +0000 |
| commit | 1136b7a2e0aa3167726d8820d4b6d89581329ef2 (patch) | |
| tree | 9f083bc9a4677bebbbd148d8be6720f55fdbce12 /llvm/lib | |
| parent | 1549e4d5904c346f50d9134cc944dc6049efdc4a (diff) | |
| download | bcm5719-llvm-1136b7a2e0aa3167726d8820d4b6d89581329ef2.tar.gz bcm5719-llvm-1136b7a2e0aa3167726d8820d4b6d89581329ef2.zip | |
Add a pattern for 'ret'. This now compiles:
void %test() { ret void }
:)
llvm-svn: 24772
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/SparcV8/SparcV8InstrInfo.td | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SparcV8/SparcV8InstrInfo.td b/llvm/lib/Target/SparcV8/SparcV8InstrInfo.td index 100e96b3fd5..e354a07962c 100644 --- a/llvm/lib/Target/SparcV8/SparcV8InstrInfo.td +++ b/llvm/lib/Target/SparcV8/SparcV8InstrInfo.td @@ -58,7 +58,7 @@ let isReturn = 1, isTerminator = 1, hasDelaySlot = 1 in { "ret $b, $c, $dst", []>; let rd = O7.Num, rs1 = G0.Num, simm13 = 8 in def RETL: F3_2<2, 0b111000, (ops), - "retl", []>; + "retl", [(ret)]>; } // CMP is a special case of SUBCC where destination is ignored, by setting it to // %g0 (hardwired zero). |

