用MounRiver Studio编译RISC-V RV32IMAC的核的代码报错有人知道什么原因吗?
// See LICENSE for license details
#ifndef ENTRY_S
#define ENTRY_S
#include "encoding.h"
#include "bits.h"
.section .text.entry
.align 2
.global trap_entry
trap_entry:
addi sp, sp, -32*REGBYTES
STORE x1, 1*REGBYTES(sp)
STORE x2, 2*REGBYTES(sp)
STORE x3, 3*REGBYTES(sp)
STORE x4, 4*REGBYTES(sp)
STORE x5, 5*REGBYTES(sp)
STORE x6, 6*REGBYTES(sp)
STORE x7, 7*REGBYTES(sp)
STORE x8, 8*REGBYTES(sp)
STORE x9, 9*REGBYTES(sp)
STORE x10, 10*REGBYTES(sp)
STORE x11, 11*REGBYTES(sp)
STORE x12, 12*REGBYTES(sp)
STORE x13, 13*REGBYTES(sp)
STORE x14, 14*REGBYTES(sp)
STORE x15, 15*REGBYTES(sp)
STORE x16, 16*REGBYTES(sp)
STORE x17, 17*REGBYTES(sp)
STORE x18, 18*REGBYTES(sp)
STORE x19, 19*REGBYTES(sp)
STORE x20, 20*REGBYTES(sp)
STORE x21, 21*REGBYTES(sp)
STORE x22, 22*REGBYTES(sp)
STORE x23, 23*REGBYTES(sp)
STORE x24, 24*REGBYTES(sp)
STORE x25, 25*REGBYTES(sp)
STORE x26, 26*REGBYTES(sp)
STORE x27, 27*REGBYTES(sp)
STORE x28, 28*REGBYTES(sp)
STORE x29, 29*REGBYTES(sp)
STORE x30, 30*REGBYTES(sp)
STORE x31, 31*REGBYTES(sp)
../User/entry.S:1: Error: junk at end of line, first unrecognized character is `/'
../User/entry.S:13: Error: illegal operands `addi sp,sp,-32*REGBYTES'
../User/entry.S:15: Error: unrecognized opcode `store x1,1*REGBYTES(sp)'
../User/entry.S:16: Error: unrecognized opcode `store x2,2*REGBYTES(sp)'
../User/entry.S:17: Error: unrecognized opcode `store x3,3*REGBYTES(sp)'
../User/entry.S:18: Error: unrecognized opcode `store x4,4*REGBYTES(sp)'
../User/entry.S:19: Error: unrecognized opcode `store x5,5*REGBYTES(sp)'
../User/entry.S:20: Error: unrecognized opcode `store x6,6*REGBYTES(sp)'
../User/entry.S:21: Error: unrecognized opcode `store x7,7*REGBYTES(sp)'
../User/entry.S:22: Error: unrecognized opcode `store x8,8*REGBYTES(sp)'
../User/entry.S:23: Error: unrecognized opcode `store x9,9*REGBYTES(sp)'
|