|
@@ -1,7 +1,7 @@
|
|
{
|
|
{
|
|
Copyright (c) 1998-2002 by Florian Klaempfl
|
|
Copyright (c) 1998-2002 by Florian Klaempfl
|
|
|
|
|
|
- This unit contains the RiscV64 GAS instruction tables
|
|
|
|
|
|
+ This unit contains the RiscV GAS instruction tables
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
it under the terms of the GNU General Public License as published by
|
|
@@ -42,24 +42,31 @@ unit itcpugas;
|
|
'fence','fence.i',
|
|
'fence','fence.i',
|
|
'ecall','ebreak',
|
|
'ecall','ebreak',
|
|
'csrrw','csrrs','csrrc','csrrwi','csrrsi','csrrci',
|
|
'csrrw','csrrs','csrrc','csrrwi','csrrsi','csrrci',
|
|
|
|
+{$ifdef RISCV64}
|
|
{ 64-bit }
|
|
{ 64-bit }
|
|
'addiw','slliw','srliw','sraiw',
|
|
'addiw','slliw','srliw','sraiw',
|
|
'addw','sllw','srlw','subw','sraw',
|
|
'addw','sllw','srlw','subw','sraw',
|
|
'ld','sd','lwu',
|
|
'ld','sd','lwu',
|
|
|
|
+{$endif RISCV64}
|
|
|
|
|
|
{ m-extension }
|
|
{ m-extension }
|
|
'mul','mulh','mulhsu','mulhu',
|
|
'mul','mulh','mulhsu','mulhu',
|
|
'div','divu','rem','remu',
|
|
'div','divu','rem','remu',
|
|
|
|
+{$ifdef RISCV64}
|
|
{ 64-bit }
|
|
{ 64-bit }
|
|
'mulw',
|
|
'mulw',
|
|
'divw','divuw','remw','remuw',
|
|
'divw','divuw','remw','remuw',
|
|
|
|
+{$endif RISCV64}
|
|
|
|
|
|
{ a-extension }
|
|
{ a-extension }
|
|
'lr.w','sc.w','amoswap.w','amoadd.w','amoxor.w','amoand.w',
|
|
'lr.w','sc.w','amoswap.w','amoadd.w','amoxor.w','amoand.w',
|
|
'amoor.w','amomin.w','amomax.w','amominu.w','amomaxu.w',
|
|
'amoor.w','amomin.w','amomax.w','amominu.w','amomaxu.w',
|
|
|
|
+
|
|
|
|
+{$ifdef RISCV64}
|
|
{ 64-bit }
|
|
{ 64-bit }
|
|
'lr.d','sc.d','amoswap.d','amoadd.d','amoxor.d','amoand.d',
|
|
'lr.d','sc.d','amoswap.d','amoadd.d','amoxor.d','amoand.d',
|
|
'amoor.d','amomin.d','amomax.d','amominu.d','amomaxu.d',
|
|
'amoor.d','amomin.d','amomax.d','amominu.d','amomaxu.d',
|
|
|
|
+{$endif RISCV64}
|
|
|
|
|
|
{ f-extension }
|
|
{ f-extension }
|
|
'flw','fsw',
|
|
'flw','fsw',
|
|
@@ -72,9 +79,12 @@ unit itcpugas;
|
|
'fmv.s.x',
|
|
'fmv.s.x',
|
|
'frcsr','frrm','frflags','fscsr','fsrm',
|
|
'frcsr','frrm','frflags','fscsr','fsrm',
|
|
'fsflags','fsrmi','fsflagsi',
|
|
'fsflags','fsrmi','fsflagsi',
|
|
|
|
+
|
|
|
|
+{$ifdef RISCV64}
|
|
{ 64-bit }
|
|
{ 64-bit }
|
|
'fcvt.l.s','fcvt.lu.s',
|
|
'fcvt.l.s','fcvt.lu.s',
|
|
'fcvt.s.l','fcvt.s.lu',
|
|
'fcvt.s.l','fcvt.s.lu',
|
|
|
|
+{$endif RISCV64}
|
|
|
|
|
|
{ d-extension }
|
|
{ d-extension }
|
|
'fld','fsd',
|
|
'fld','fsd',
|
|
@@ -85,9 +95,12 @@ unit itcpugas;
|
|
'feq.d','flt.d','fle.d','fclass.d',
|
|
'feq.d','flt.d','fle.d','fclass.d',
|
|
'fcvt.d.s','fcvt.s.d',
|
|
'fcvt.d.s','fcvt.s.d',
|
|
'fcvt.w.d','fcvt.wu.d','fcvt.d.w','fcvt.d.wu',
|
|
'fcvt.w.d','fcvt.wu.d','fcvt.d.w','fcvt.d.wu',
|
|
|
|
+
|
|
|
|
+{$ifdef RISCV64}
|
|
{ 64-bit }
|
|
{ 64-bit }
|
|
'fcvt.l.d','fcvt.lu.d','fmv.x.d',
|
|
'fcvt.l.d','fcvt.lu.d','fmv.x.d',
|
|
'fcvt.d.l','fcvt.d.lu','fmv.d.x',
|
|
'fcvt.d.l','fcvt.d.lu','fmv.d.x',
|
|
|
|
+{$endif RISCV64}
|
|
|
|
|
|
{ Machine mode }
|
|
{ Machine mode }
|
|
'mret','hret','sret','uret',
|
|
'mret','hret','sret','uret',
|