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

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Fri Jul 19 16:47:22 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)
----------------
shiltian wrote:

Why `0*SZREG(sp)` instead of `0(sp)`?

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


More information about the Openmp-commits mailing list