Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

缺失的指令 missing instructions #39

@shouhuanxiaoji

Description

@shouhuanxiaoji

Describe the question:

类似x86下的mov指令和ret指令在手册中未查到
Describe the idea:

在编写loongarch64汇编时,发现传送指令(类似x86的mov),无条件跳转指令(类似ret)是缺失的,经过对一个c文件,在gcc下进行汇编编译,我们认为这几个指令是可能的:
jr指令,对应ret指令,用法为
jr $r1
la.local指令,对应mov,用法为
la.local 寄存器操作数, 被传送内容(x86下通常是.data域定义的变量)
另外还看到一个la.global不知是何含义
以上三个指令,在《loongarch架构手册第一部分》内查不到,请帮忙核实一下。
Additional context:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions