scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit e238128c2f57d1e756e4f753fe513158703d5916
parent b4960198c9e21102a0c718e32fba9c58d7d9e3e0
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 22 Sep 2019 14:39:20 +0200

[as-powerpc] Add BCCTR and BCCTRL instructions

Diffstat:
Msrc/cmd/as/target/powerpc/ops.dat | 3+++
Mtests/as/execute/powerpc.s | 3+++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/cmd/as/target/powerpc/ops.dat b/src/cmd/as/target/powerpc/ops.dat @@ -57,3 +57,6 @@ BCLA imm5,imm5,imm64 4 16,1,1 b_form POWERPC64 BCLR imm5,imm5,imm2 4 19,0,16,0 xl_form POWERPC,POWERPC64 BCLRL imm5,imm5,imm2 4 19,0,16,1 xl_form POWERPC,POWERPC64 + +BCCTR imm5,imm5,imm2 4 19,2,16,0 xl_form POWERPC,POWERPC64 +BCCTRL imm5,imm5,imm2 4 19,2,16,1 xl_form POWERPC,POWERPC64 diff --git a/tests/as/execute/powerpc.s b/tests/as/execute/powerpc.s @@ -10,3 +10,6 @@ L2: BCLA $3,$4,$L2 # 40 64 08 03 BCLR $1,$2,$2 # 4C 22 10 20 BCLRL $2,$2,$1 # 4C 42 08 21 + + BCCTR $4,$6,$0 # 4C 86 04 20 + BCLRL $12,$0,$0 # 4D 80 00 21