[Openmp-commits] [openmp] [OpenMP][RISCV] Add riscv32 support (PR #99494)

Pengcheng Wang via Openmp-commits openmp-commits at lists.llvm.org
Sun Jul 21 21:28:58 PDT 2024


================
@@ -1797,13 +1807,13 @@ __kmp_invoke_microtask:
 	.cfi_startproc
 
 	// First, save ra and fp
-	addi	sp, sp, -16
-	sd	ra, 8(sp)
-	sd	fp, 0(sp)
-	addi	fp, sp, 16
+	addi	sp, sp, -2*SZREG
+	REG_S	ra, 1*SZREG(sp)
+	REG_S	fp, 0*SZREG(sp)
----------------
wangpc-pp wrote:

> Readability?

Yes!

https://github.com/llvm/llvm-project/pull/99494


More information about the Openmp-commits mailing list