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 | bc3d362d5bae59eb45ce275d8c4d9372847369dc (patch) | |
tree | 4304110675f09d6d2ec701607f1fde7ca5473969 /lib/Target/Sparc | |
parent | f3bf50d2c80da2d45b22e5c2458048c860754736 (diff) |
Add a pattern for 'ret'. This now compiles:
void %test() { ret void }
:)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24772 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/SparcInstrInfo.td | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td index 100e96b3fd..e354a07962 100644 --- a/lib/Target/Sparc/SparcInstrInfo.td +++ b/lib/Target/Sparc/SparcInstrInfo.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). |