public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "patrick at rivosinc dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113607] [14] RISC-V rv64gcv vector: Runtime mismatch at -O3 Date: Fri, 26 Jan 2024 08:05:01 +0000 [thread overview] Message-ID: <bug-113607-4-As6OuxOYlv@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-113607-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113607 --- Comment #5 from Patrick O'Neill <patrick at rivosinc dot com> --- Hmm that's odd. I just reproduced with tip-of-tree GCC. > /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc -O3 -march=rv64gcv red.c -o user-config-o3.out > QEMU_CPU=rv64,vlen=128,v=true,vext_spec=v1.0,Zve32f=true,Zve64f=true /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/bin/qemu-riscv64 user-config-o3.out > echo $? 1 > /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc -O2 -march=rv64gcv red.c -o user-config-o2.out > QEMU_CPU=rv64,vlen=128,v=true,vext_spec=v1.0,Zve32f=true,Zve64f=true /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/bin/qemu-riscv64 user-config-o2.out > echo $? 0 GCC: r14-8442-gd40b3c1e439 QEMU v8.1.2: 78385bc738108a9b5b20e639520dc60425ca2a5a Verbose compile output: > /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc -O3 -march=rv64gcv red.c -o user-config-o3.out -v Using built-in specs. COLLECT_GCC=/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/bin/riscv64-unknown-linux-gnu-gcc COLLECT_LTO_WRAPPER=/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/libexec/gcc/riscv64-unknown-linux-gnu/14.0.1/lto-wrapper Target: riscv64-unknown-linux-gnu Configured with: /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/../gcc/configure --target=riscv64-unknown-linux-gnu --prefix=/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv --with-sysroot=/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/sysroot --with-pkgversion=gd40b3c1e439 --with-system-zlib --enable-shared --enable-tls --enable-languages=c,c++,fortran --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libsanitizer --disable-nls --disable-bootstrap --src=../../gcc --enable-multilib --with-abi=lp64d --with-arch=rv64imafdc --with-tune=rocket --with-isa-spec=20191213 'CFLAGS_FOR_TARGET=-O2 -mcmodel=medlow' 'CXXFLAGS_FOR_TARGET=-O2 -mcmodel=medlow' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240126 (experimental) (gd40b3c1e439) COLLECT_GCC_OPTIONS='-O3' '-march=rv64gcv' '-o' 'user-config-o3.out' '-v' '-mtune=rocket' '-mabi=lp64d' '-misa-spec=20191213' '-march=rv64imafdcv_zicsr_zifencei_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b' '-dumpdir' 'user-config-o3.out-' /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/libexec/gcc/riscv64-unknown-linux-gnu/14.0.1/cc1 -quiet -v -imultilib . red.c -quiet -dumpdir user-config-o3.out- -dumpbase red.c -dumpbase-ext .c -march=rv64gcv -mtune=rocket -mabi=lp64d -misa-spec=20191213 -march=rv64imafdcv_zicsr_zifencei_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b -O3 -version -o /scratch/tmp/cc9XcIxi.s GNU C17 (gd40b3c1e439) version 14.0.1 20240126 (experimental) (riscv64-unknown-linux-gnu) compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version none GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ignoring nonexistent directory "/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/sysroot/usr/local/include" #include "..." search starts here: #include <...> search starts here: /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1/include /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1/include-fixed /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1/../../../../riscv64-unknown-linux-gnu/include /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/sysroot/usr/include End of search list. Compiler executable checksum: d731a6f03cb6c5b63837972018763b86 COLLECT_GCC_OPTIONS='-O3' '-march=rv64gcv' '-o' 'user-config-o3.out' '-v' '-mtune=rocket' '-mabi=lp64d' '-misa-spec=20191213' '-march=rv64imafdcv_zicsr_zifencei_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b' '-dumpdir' 'user-config-o3.out-' /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1/../../../../riscv64-unknown-linux-gnu/bin/as -v --traditional-format -march=rv64gcv -march=rv64imafdcv_zicsr_zifencei_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b -mabi=lp64d -misa-spec=20191213 -o /scratch/tmp/cc7w3Ftf.o /scratch/tmp/cc9XcIxi.s GNU assembler version 2.41.50 (riscv64-unknown-linux-gnu) using BFD version (GNU Binutils) 2.41.50.20231205 COMPILER_PATH=/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/libexec/gcc/riscv64-unknown-linux-gnu/14.0.1/:/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/libexec/gcc/riscv64-unknown-linux-gnu/14.0.1/:/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/libexec/gcc/riscv64-unknown-linux-gnu/:/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1/:/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/:/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1/../../../../riscv64-unknown-linux-gnu/bin/ LIBRARY_PATH=/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1/:/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1/../../../../riscv64-unknown-linux-gnu/lib/:/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/sysroot/lib64/lp64d/:/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/sysroot/usr/lib64/lp64d/:/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/sysroot/lib/ COLLECT_GCC_OPTIONS='-O3' '-march=rv64gcv' '-o' 'user-config-o3.out' '-v' '-mtune=rocket' '-mabi=lp64d' '-misa-spec=20191213' '-march=rv64imafdcv_zicsr_zifencei_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b' '-dumpdir' 'user-config-o3.out.' /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/libexec/gcc/riscv64-unknown-linux-gnu/14.0.1/collect2 -plugin /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/libexec/gcc/riscv64-unknown-linux-gnu/14.0.1/liblto_plugin.so -plugin-opt=/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/libexec/gcc/riscv64-unknown-linux-gnu/14.0.1/lto-wrapper -plugin-opt=-fresolution=/scratch/tmp/cc30o9bR.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/sysroot --eh-frame-hdr -melf64lriscv -dynamic-linker /lib/ld-linux-riscv64-lp64d.so.1 -o user-config-o3.out /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/sysroot/usr/lib64/lp64d/crt1.o /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1/crti.o /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1/crtbegin.o -L/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1 -L/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1/../../../../riscv64-unknown-linux-gnu/lib -L/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/sysroot/lib64/lp64d -L/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/sysroot/usr/lib64/lp64d -L/scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/sysroot/lib /scratch/tmp/cc7w3Ftf.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1/crtend.o /scratch/tc-testing/tc-jan-25-reconfirm/build-rv64gcv/lib/gcc/riscv64-unknown-linux-gnu/14.0.1/crtn.o COLLECT_GCC_OPTIONS='-O3' '-march=rv64gcv' '-o' 'user-config-o3.out' '-v' '-mtune=rocket' '-mabi=lp64d' '-misa-spec=20191213' '-march=rv64imafdcv_zicsr_zifencei_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b' '-dumpdir' 'user-config-o3.out.'
next prev parent reply other threads:[~2024-01-26 8:05 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-01-25 23:05 [Bug target/113607] New: " patrick at rivosinc dot com 2024-01-26 1:52 ` [Bug target/113607] " juzhe.zhong at rivai dot ai 2024-01-26 1:52 ` juzhe.zhong at rivai dot ai 2024-01-26 2:12 ` juzhe.zhong at rivai dot ai 2024-01-26 7:58 ` rdapp at gcc dot gnu.org 2024-01-26 8:05 ` patrick at rivosinc dot com [this message] 2024-01-26 8:12 ` patrick at rivosinc dot com 2024-01-26 8:14 ` rdapp at gcc dot gnu.org 2024-01-26 8:19 ` juzhe.zhong at rivai dot ai 2024-01-26 9:09 ` juzhe.zhong at rivai dot ai 2024-01-26 9:38 ` rdapp at gcc dot gnu.org 2024-01-26 9:42 ` juzhe.zhong at rivai dot ai 2024-01-26 9:42 ` pinskia at gcc dot gnu.org 2024-01-26 9:59 ` juzhe.zhong at rivai dot ai 2024-01-28 6:08 ` pinskia at gcc dot gnu.org 2024-01-29 3:27 ` juzhe.zhong at rivai dot ai 2024-01-29 12:29 ` rdapp at gcc dot gnu.org 2024-01-29 16:30 ` rdapp at gcc dot gnu.org 2024-01-29 19:50 ` rdapp at gcc dot gnu.org 2024-01-30 21:03 ` rdapp at gcc dot gnu.org 2024-01-30 22:12 ` juzhe.zhong at rivai dot ai 2024-01-30 22:14 ` pinskia at gcc dot gnu.org 2024-01-30 22:21 ` pinskia at gcc dot gnu.org 2024-01-31 8:28 ` rdapp at gcc dot gnu.org 2024-01-31 20:31 ` [Bug middle-end/113607] " cvs-commit at gcc dot gnu.org 2024-02-02 18:20 ` patrick at rivosinc dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-113607-4-As6OuxOYlv@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).