git-svn-id: branches/laksen/riscv_new@39716 -
@@ -66,6 +66,13 @@ asm
mov w3, y
end;
{$endif CPUAARCH64}
+{$ifdef CPURISCV64}
+{$define SUPPORTED}
+asm
+ addi a0, x, 0
+ addi a1, y, 0
+end;
+{$endif CPURISCV64}
{$ifndef SUPPORTED}
asm
@@ -63,6 +63,13 @@ end;
{$define implemented}
{$endif cpuaarch64}
+{$ifdef cpuriscv64}
+.L1:
+ auipc a0,%pcrel_hi(stacksize)
+ ld a0, %pcrel_lo(.L1)(a0)
+{$define implemented}
+{$endif cpuriscv64}
{$ifndef implemented}
{$error This test does not supported this CPU}