scc

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

commit 17fdc8fbe7c5299743f3c72afc166da09b9c74e0
parent ca83dabe6427d346a3406c6386c89f4f30c7662d
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 18 Sep 2019 21:43:23 +0200

[as-powerpc] Add basic assembler pseudo-instructions

Diffstat:
Msrc/cmd/as/target/powerpc/powerpc.dat | 37+++++++++++++++++++++++++++++++++++++
Msrc/cmd/as/target/powerpc/rules.dat | 6++++++
2 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/src/cmd/as/target/powerpc/powerpc.dat b/src/cmd/as/target/powerpc/powerpc.dat @@ -0,0 +1,37 @@ +# Tab 18, tabs 18, :set ts=18 +# op args size bytes format cpu +.SECTION sym,string? 0 none section POWERPC,POWERPC64 +.TEXT none 0 none text POWERPC,POWERPC64 +.DATA none 0 none data POWERPC,POWERPC64 +.BSS none 0 none bss POWERPC,POWERPC64 +.DB imm8+ 0 none defb POWERPC,POWERPC64 +.DEFB imm8+ 0 none defb POWERPC,POWERPC64 +.BYTE imm8+ 0 none defb POWERPC,POWERPC64 +.DW imm16+ 0 none defw POWERPC,POWERPC64 +.DEFW imm16+ 0 none defw POWERPC,POWERPC64 +.SHORT imm16+ 0 none defw POWERPC,POWERPC64 +.WORD imm16+ 0 none defw POWERPC,POWERPC64 +.DD imm32+ 0 none defd POWERPC,POWERPC64 +.DEFD imm32+ 0 none defd POWERPC,POWERPC64 +.LONG imm32+ 0 none defd POWERPC,POWERPC64 +.INT imm16+ 0 none defd POWERPC,POWERPC64 +.DQ imm64+ 0 none defq POWERPC,POWERPC64 +.DEFQ imm64+ 0 none defq POWERPC,POWERPC64 +.EQU sym,imm16 0 none equ POWERPC,POWERPC64 +.EQU imm16 0 none equ POWERPC,POWERPC64 += imm16 0 none equ POWERPC,POWERPC64 +.SIZE sym,imm16 0 none size POWERPC,POWERPC64 +.SIZE imm16 0 none size POWERPC,POWERPC64 +.COMM sym,imm16 0 none common POWERPC,POWERPC64 +.COMM imm16 0 none common POWERPC,POWERPC64 +.TYPE sym,imm16 0 none type POWERPC,POWERPC64 +.TYPE imm16 0 none type POWERPC,POWERPC64 +.GLOBL sym+ 0 none global POWERPC,POWERPC64 +.PUBLIC sym+ 0 none global POWERPC,POWERPC64 +.EXTERN sym+ 0 none extrn POWERPC,POWERPC64 +.EXTRN sym+ 0 none extrn POWERPC,POWERPC64 +.STRING string+ 0 none string POWERPC,POWERPC64 +.ASCII string+ 0 none ascii POWERPC,POWERPC64 +.ALIGN imm16+ 0 none align POWERPC,POWERPC64 +.END none 0 none end POWERPC,POWERPC64 +.INCLUDE string 0 none include POWERPC,POWERPC64 diff --git a/src/cmd/as/target/powerpc/rules.dat b/src/cmd/as/target/powerpc/rules.dat @@ -0,0 +1,6 @@ +imm8 AIMM8 +imm16 AIMM16 +imm32 AIMM32 +imm64 AIMM64 +sym ASYM +string ASTR