[Bug target/120433] RISC-V:Unexpected Sign-Extension Behavior for uint32_t Return Values in RV64

2025-05-25 Thread bigmagicreadsun at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120433 --- Comment #3 from fujin zhao --- (In reply to fujin zhao from comment #2) > I've refactored a0_in_asm() as requested, but the result remains unchanged. > Here’s the updated implementation: > > > __attribute__((noinline)) uint32_t a0_in_asm()

[Bug target/120433] RISC-V:Unexpected Sign-Extension Behavior for uint32_t Return Values in RV64

2025-05-25 Thread bigmagicreadsun at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120433 --- Comment #2 from fujin zhao --- I've refactored a0_in_asm() as requested, but the result remains unchanged. Here’s the updated implementation: __attribute__((noinline)) uint32_t a0_in_asm() { uint32_t result; asm volatile (

[Bug c/120433] New: RISC-V:Unexpected Sign-Extension Behavior for uint32_t Return Values in RV64

2025-05-25 Thread bigmagicreadsun at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120433 Bug ID: 120433 Summary: RISC-V:Unexpected Sign-Extension Behavior for uint32_t Return Values in RV64 Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity:

[Bug c/119847] New: RISC-V:GCC fail to optimize repeated patterns in volatile operations

2025-04-17 Thread bigmagicreadsun at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119847 Bug ID: 119847 Summary: RISC-V:GCC fail to optimize repeated patterns in volatile operations Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal

[Bug c/119830] New: RISC-V:Internal Compiler Error on RISC-V Windows Toolchain (32-bit program) with -march=rv64gc_zbb_zbs

2025-04-16 Thread bigmagicreadsun at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119830 Bug ID: 119830 Summary: RISC-V:Internal Compiler Error on RISC-V Windows Toolchain (32-bit program) with -march=rv64gc_zbb_zbs Product: gcc Version: 14.2.1 Status: UNCON

[Bug c/119709] New: RISC-V: Why volatile int16_t variables generate extra shift instructions in compiler output

2025-04-10 Thread bigmagicreadsun at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119709 Bug ID: 119709 Summary: RISC-V: Why volatile int16_t variables generate extra shift instructions in compiler output Product: gcc Version: 14.2.1 Status: UNCONFIRMED

[Bug c/119475] New: RISC-V: After enabling LTO with RVV, compilation errors occur.

2025-03-26 Thread bigmagicreadsun at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119475 Bug ID: 119475 Summary: RISC-V: After enabling LTO with RVV, compilation errors occur. Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal

[Bug target/117037] gcc14.2.1 riscv64-unknown-linux-gnu-g++ build opencv 5.x error

2025-01-23 Thread bigmagicreadsun at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117037 --- Comment #5 from fujin zhao --- It was my code that had an error, this error does not exist.

[Bug target/117037] gcc14.2.1 riscv64-unknown-linux-gnu-g++ build opencv 5.x error

2025-01-23 Thread bigmagicreadsun at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117037 fujin zhao changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug c/118618] New: RISC-V: Zcmp extension and RVV auto-vectorization are both enabled,the sp register error.

2025-01-22 Thread bigmagicreadsun at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118618 Bug ID: 118618 Summary: RISC-V: Zcmp extension and RVV auto-vectorization are both enabled,the sp register error. Product: gcc Version: 14.2.1 Status: UNCONFIRMED

[Bug target/117037] gcc14.2.1 riscv64-unknown-linux-gnu-g++ build opencv 5.x error

2024-10-11 Thread bigmagicreadsun at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117037 --- Comment #4 from fujin zhao --- After adding the -freport-bug compilation option, the error message is as follows: [ 49%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/reduce_layer.cpp.o during GIMPLE pass: vect opencv

[Bug target/117037] gcc14.2.1 riscv64-unknown-linux-gnu-g++ build opencv 5.x error

2024-10-11 Thread bigmagicreadsun at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117037 --- Comment #3 from fujin zhao --- The same project compiles fine with GCC 13.1.1, but it reports an error with GCC 14.2.1. However, adding the -fwrapv option in GCC 14.2.1 can fixed the bug.Could you please explain the reason for this?

[Bug c++/117037] New: gcc14.2.1 riscv64-unknown-linux-gnu-g++ build opencv 5.x error

2024-10-08 Thread bigmagicreadsun at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117037 Bug ID: 117037 Summary: gcc14.2.1 riscv64-unknown-linux-gnu-g++ build opencv 5.x error Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal