Skip to content

不支持使用vector指令写内联汇编 #207

@xiaoyu1004

Description

@xiaoyu1004

static inline uint __builtin_riscv_lane_id() {
uint laneId;
__asm("vid.v %0" : "=v"(laneId) : :);
return laneId;
}
上面的内联汇编会报错

Image Image

或者这个可以内联吗,去掉函数调用开销
加上 -flto 启用链接时优化会报错

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