mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
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
This commit is contained in:
@@ -58,7 +58,7 @@ let isReturn = 1, isTerminator = 1, hasDelaySlot = 1 in {
|
|||||||
"ret $b, $c, $dst", []>;
|
"ret $b, $c, $dst", []>;
|
||||||
let rd = O7.Num, rs1 = G0.Num, simm13 = 8 in
|
let rd = O7.Num, rs1 = G0.Num, simm13 = 8 in
|
||||||
def RETL: F3_2<2, 0b111000, (ops),
|
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
|
// CMP is a special case of SUBCC where destination is ignored, by setting it to
|
||||||
// %g0 (hardwired zero).
|
// %g0 (hardwired zero).
|
||||||
|
@@ -58,7 +58,7 @@ let isReturn = 1, isTerminator = 1, hasDelaySlot = 1 in {
|
|||||||
"ret $b, $c, $dst", []>;
|
"ret $b, $c, $dst", []>;
|
||||||
let rd = O7.Num, rs1 = G0.Num, simm13 = 8 in
|
let rd = O7.Num, rs1 = G0.Num, simm13 = 8 in
|
||||||
def RETL: F3_2<2, 0b111000, (ops),
|
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
|
// CMP is a special case of SUBCC where destination is ignored, by setting it to
|
||||||
// %g0 (hardwired zero).
|
// %g0 (hardwired zero).
|
||||||
|
Reference in New Issue
Block a user