shithub: scc

Download patch

ref: 4fe7b3c5097db6b24eef3680dec682b3d552bd64
parent: 7328d784f2161757a4413de58e1cb433d0bf3bbe
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Sep 22 10:39:20 EDT 2019

[as-powerpc] Add BCCTR and BCCTRL instructions

--- a/src/cmd/as/target/powerpc/ops.dat
+++ b/src/cmd/as/target/powerpc/ops.dat
@@ -57,3 +57,6 @@
 
 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
--- a/tests/as/execute/powerpc.s
+++ b/tests/as/execute/powerpc.s
@@ -10,3 +10,6 @@
 
 	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