瀏覽代碼

Fixed unittests that needed arch specific inline assembler.

git-svn-id: branches/laksen/riscv_new@39716 -
Jeppe Johansen 7 年之前
父節點
當前提交
fb0ef295f1
共有 2 個文件被更改,包括 14 次插入0 次删除
  1. 7 0
      tests/tbs/tb0072.pp
  2. 7 0
      tests/tbs/tb0193.pp

+ 7 - 0
tests/tbs/tb0072.pp

@@ -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
 end;

+ 7 - 0
tests/tbs/tb0193.pp

@@ -63,6 +63,13 @@ end;
 end;
 {$define implemented}   
 {$endif cpuaarch64}
+{$ifdef cpuriscv64}
+.L1:
+  auipc a0,%pcrel_hi(stacksize)
+  ld a0, %pcrel_lo(.L1)(a0)
+end;
+{$define implemented}
+{$endif cpuriscv64}
 {$ifndef implemented}
  {$error This test does not supported this CPU}
 end;