diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-04-19 05:00:59 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-04-19 05:00:59 +0000 |
| commit | 116a9e5a345a2392ce4badbfe342f9e460af47a0 (patch) | |
| tree | bf6385be0fef5fb15544762781f0fa5a8e51bf9d | |
| parent | b2367e398eda1bf51729a57a3103fce09cf591da (diff) | |
| download | bcm5719-llvm-116a9e5a345a2392ce4badbfe342f9e460af47a0.tar.gz bcm5719-llvm-116a9e5a345a2392ce4badbfe342f9e460af47a0.zip | |
convert over bform and iform instructions
llvm-svn: 21349
| -rw-r--r-- | llvm/lib/Target/PowerPC/PowerPCInstrFormats.td | 12 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PowerPCInstrInfo.td | 22 |
2 files changed, 17 insertions, 17 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCInstrFormats.td b/llvm/lib/Target/PowerPC/PowerPCInstrFormats.td index d0aef6d8d60..b74fbbaea36 100644 --- a/llvm/lib/Target/PowerPC/PowerPCInstrFormats.td +++ b/llvm/lib/Target/PowerPC/PowerPCInstrFormats.td @@ -57,8 +57,8 @@ class I<bits<6> opcode, bit ppc64, bit vmx, dag OL, string asmstr> } // 1.7.1 I-Form -class IForm<bits<6> opcode, bit aa, bit lk, bit ppc64, bit vmx, - dag OL, string asmstr> : I<opcode, ppc64, vmx, OL, asmstr> { +class IForm<bits<6> opcode, bit aa, bit lk, dag OL, string asmstr> + : I<opcode, 0, 0, OL, asmstr> { bits<24> LI; let Inst{6-29} = LI; @@ -67,8 +67,8 @@ class IForm<bits<6> opcode, bit aa, bit lk, bit ppc64, bit vmx, } // 1.7.2 B-Form -class BForm<bits<6> opcode, bit aa, bit lk, bit ppc64, bit vmx, - dag OL, string asmstr> : I<opcode, ppc64, vmx, OL, asmstr> { +class BForm<bits<6> opcode, bit aa, bit lk, + dag OL, string asmstr> : I<opcode, 0, 0, OL, asmstr> { bits<5> BO; bits<3> CRNum; bits<2> BICode; @@ -83,8 +83,8 @@ class BForm<bits<6> opcode, bit aa, bit lk, bit ppc64, bit vmx, } class BForm_ext<bits<6> opcode, bit aa, bit lk, bits<5> bo, bits<2> bicode, - bit ppc64, bit vmx, dag OL, string asmstr> - : BForm<opcode, aa, lk, ppc64, vmx, OL, asmstr> { + dag OL, string asmstr> + : BForm<opcode, aa, lk, OL, asmstr> { let BO = bo; let BICode = bicode; } diff --git a/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td b/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td index 83aad3d46ad..ad7fe6b759c 100644 --- a/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td +++ b/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td @@ -65,24 +65,24 @@ let Defs = [LR] in 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 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">; + def B : IForm<18, 0, 0, (ops target:$func), "b $func">; +//def BA : IForm<18, 1, 0, (ops target:$func), "ba $func">; + def BL : IForm<18, 0, 1, (ops target:$func), "bl $func">; +//def BLA : IForm<18, 1, 1, (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), + def BLT : BForm_ext<16, 0, 0, 12, 0, (ops CRRC:$crS, target:$block), "blt $block">; - def BLE : BForm_ext<16, 0, 0, 4, 1, 0, 0, (ops CRRC:$crS, target:$block), + def BLE : BForm_ext<16, 0, 0, 4, 1, (ops CRRC:$crS, target:$block), "ble $block">; - def BEQ : BForm_ext<16, 0, 0, 12, 2, 0, 0, (ops CRRC:$crS, target:$block), + def BEQ : BForm_ext<16, 0, 0, 12, 2, (ops CRRC:$crS, target:$block), "beq $block">; - def BGE : BForm_ext<16, 0, 0, 4, 0, 0, 0, (ops CRRC:$crS, target:$block), + def BGE : BForm_ext<16, 0, 0, 4, 0, (ops CRRC:$crS, target:$block), "bge $block">; - def BGT : BForm_ext<16, 0, 0, 12, 1, 0, 0, (ops CRRC:$crS, target:$block), + def BGT : BForm_ext<16, 0, 0, 12, 1, (ops CRRC:$crS, target:$block), "bgt $block">; - def BNE : BForm_ext<16, 0, 0, 4, 2, 0, 0, (ops CRRC:$crS, target:$block), + def BNE : BForm_ext<16, 0, 0, 4, 2, (ops CRRC:$crS, target:$block), "bne $block">; } @@ -93,7 +93,7 @@ let isBranch = 1, isTerminator = 1, isCall = 1, LR,XER,CTR, CR0,CR1,CR5,CR6,CR7] in { // Convenient aliases for call instructions - def CALLpcrel : IForm<18, 0, 1, 0, 0, (ops target:$func), "bl $func">; + def CALLpcrel : IForm<18, 0, 1, (ops target:$func), "bl $func">; def CALLindirect : XLForm_2_ext<19, 528, 20, 0, 1, (ops), "bctrl">; } |

