https://sourceware.org/bugzilla/show_bug.cgi?id=33128

Huaqi <fanghuaqi at vip dot qq.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fanghuaqi at vip dot qq.com

--- Comment #3 from Huaqi <fanghuaqi at vip dot qq.com> ---
Hello, there, we are using the .option arch, -ext feature to disable full
compressed instructions just like below code, but since with the patch RISC-V:
Deprecate ".option arch, -ext" for users due to its controversial use included
, it will show following compiling error like this

Error: deprecated - extension `zcd' in .option arch `-zcd,-zcf,-zcb,-zca'



  /* RISC-V semihosting trap sequence.  Must be uncompressed and must not
     cross page boundary.  */
  asm volatile (
    ".balign 16             \n"
    ".option push           \n"
    ".option norvc          \n"
    ".option arch,-c        \n"
#ifdef __riscv_zcmt
    ".option arch,-zcmt     \n"
#endif
#ifdef __riscv_zcmp
    ".option arch,-zcmp     \n"
#endif
    ".option arch,-zcd,-zcf,-zcb,-zca \n"
    "slli zero, zero, 0x1f  \n"
    "ebreak                 \n"
    "srai zero, zero, 0x7   \n"
    ".option pop            \n"
      : "+r"(a0) : "r"(a1) : "memory");

And this feature is still documented in
https://github.com/riscv-non-isa/riscv-asm-manual/blob/b99bfb68e0f3d05c1f58ba3ae76b48a68d533e8d/src/asm-manual.adoc?plain=1#L258-L295]

Since in the past, there is no good way to disable FULL compressed
instructions, so we have to do it like this, discussion happened here
https://github.com/riscv-non-isa/riscv-asm-manual/issues/91

Thanks

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to