diff options
| author | Misha Brukman <brukman+llvm@gmail.com> | 2004-10-23 20:29:24 +0000 |
|---|---|---|
| committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-10-23 20:29:24 +0000 |
| commit | f1f62707081644a8c81e020abcadc5bd69a1ad08 (patch) | |
| tree | 808d39798cb189a795cc912a241406f5dac5ec09 /llvm/lib | |
| parent | 81cd049e8c6efc958b53451e2bf2012cf781a0b1 (diff) | |
| download | bcm5719-llvm-f1f62707081644a8c81e020abcadc5bd69a1ad08.tar.gz bcm5719-llvm-f1f62707081644a8c81e020abcadc5bd69a1ad08.zip | |
Add BA, BL, and BLA opcodes
llvm-svn: 17193
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PowerPCInstrInfo.td | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td b/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td index 8d539b859a6..69cc55fc796 100644 --- a/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td +++ b/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td @@ -53,7 +53,10 @@ def MovePCtoLR : Pseudo<(ops piclabel:$label), "bl $label">; let isBranch = 1, isTerminator = 1 in { def COND_BRANCH : Pseudo<(ops), "; COND_BRANCH">; - def B : IForm<18, 0, 0, 0, 0, (ops target:$func), "b $func">; + def B : IForm<18, 0, 0, 0, 0, (ops target:$func), "b $func">; + def BA : IForm<18, 1, 0, 0, 0, (ops target:$func), "ba $func">; + def BL : IForm<18, 0, 1, 0, 0, (ops target:$func), "bl $func">; + def BLA : IForm<18, 1, 1, 0, 0, (ops target:$func), "bla $func">; // FIXME: 4*CR# needs to be added to the BI field! // This will only work for CR0 as it stands now def BLT : BForm_ext<16, 0, 0, 12, 0, 0, 0, (ops CRRC:$crS, target:$block), |

