Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMO not support #1583

Closed
F-eng666666 opened this issue Oct 17, 2024 · 2 comments
Closed

CMO not support #1583

F-eng666666 opened this issue Oct 17, 2024 · 2 comments

Comments

@F-eng666666
Copy link

An error occurred when version 13.2.0 was used to compile files with cbo instructions
图片

@TommyMurphyTM1234
Copy link
Collaborator

TommyMurphyTM1234 commented Oct 17, 2024

The error seems correct - your operands seem to be illegal:

This compiles/assembles OK for example:

/* test.c */
void f(void)
{
    asm("cbo.zero 0(x5)";
}
./riscv64-unknown-elf-gcc -march=rv32gc_zicboz -mabi=ilp32d -c test.c
./riscv64-unknown-elf-objdump -dS test.o

test.o:     file format elf32-littleriscv


Disassembly of section .text:

00000000 <f>:
   0:   1141                    addi    sp,sp,-16
   2:   c622                    sw      s0,12(sp)
   4:   0800                    addi    s0,sp,16
   6:   0042a00f                cbo.zero        (t0)
   a:   0001                    nop
   c:   4432                    lw      s0,12(sp)
   e:   0141                    addi    sp,sp,16
  10:   8082                    ret

@TommyMurphyTM1234
Copy link
Collaborator

FWIW...

2024-10-17 11 43 12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants