[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8InstrInfo.td

Chris Lattner lattner at cs.uiuc.edu
Sat Dec 17 00:08:54 PST 2005



Changes in directory llvm/lib/Target/SparcV8:

SparcV8InstrInfo.td updated: 1.48 -> 1.49
---
Log message:

Add a pattern for 'ret'.  This now compiles:

void %test() { ret void }

:)



---
Diffs of the changes:  (+1 -1)

 SparcV8InstrInfo.td |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/SparcV8/SparcV8InstrInfo.td
diff -u llvm/lib/Target/SparcV8/SparcV8InstrInfo.td:1.48 llvm/lib/Target/SparcV8/SparcV8InstrInfo.td:1.49
--- llvm/lib/Target/SparcV8/SparcV8InstrInfo.td:1.48	Sat Dec 17 02:06:43 2005
+++ llvm/lib/Target/SparcV8/SparcV8InstrInfo.td	Sat Dec 17 02:08:42 2005
@@ -58,7 +58,7 @@
                    "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).






More information about the llvm-commits mailing list