public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/109544] New: implicit declaration of function '__riscv_vsseg4e8_v_i8mf8'
@ 2023-04-18 14:04 malat at debian dot org
  2023-04-18 14:10 ` [Bug target/109544] " juzhe.zhong at rivai dot ai
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: malat at debian dot org @ 2023-04-18 14:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109544

            Bug ID: 109544
           Summary: implicit declaration of function
                    '__riscv_vsseg4e8_v_i8mf8'
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: malat at debian dot org
  Target Milestone: ---

Seems like some intrinsics are missing:

$ wget
https://raw.githubusercontent.com/riscv-non-isa/rvv-intrinsic-doc/70b1a6ba0959505793bc8d2c3ccea0e2b5402e80/auto-generated/api-testing/vsseg4e8.c

Gives:

% clang-16 -v -march=rv64gcv1p0 -c vsseg4e8.c
Debian clang version 16.0.0 (1~exp5)
Target: riscv64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/riscv64-linux-gnu/12
Found candidate GCC installation: /usr/bin/../lib/gcc/riscv64-linux-gnu/13
Selected GCC installation: /usr/bin/../lib/gcc/riscv64-linux-gnu/13
 (in-process)
 "/usr/lib/llvm-16/bin/clang" -cc1 -triple riscv64-unknown-linux-gnu -emit-obj
-mrelax-all -disable-free -clear-ast-before-backend -disable-llvm-verifier
-discard-value-names -main-file-name vsseg4e8.c -mrelocation-model pic
-pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on
-fno-rounding-math -mconstructor-aliases -target-cpu generic-rv64
-target-feature +m -target-feature +a -target-feature +f -target-feature +d
-target-feature +c -target-feature +v -target-feature +zve32f -target-feature
+zve32x -target-feature +zve64d -target-feature +zve64f -target-feature +zve64x
-target-feature +zvl128b -target-feature +zvl32b -target-feature +zvl64b
-target-feature -e -target-feature -h -target-feature -zihintpause
-target-feature -zfhmin -target-feature -zfh -target-feature -zfinx
-target-feature -zdinx -target-feature -zhinxmin -target-feature -zhinx
-target-feature -zba -target-feature -zbb -target-feature -zbc -target-feature
-zbs -target-feature -zbkb -target-feature -zbkc -target-feature -zbkx
-target-feature -zknd -target-feature -zkne -target-feature -zknh
-target-feature -zksed -target-feature -zksh -target-feature -zkr
-target-feature -zkn -target-feature -zks -target-feature -zkt -target-feature
-zk -target-feature -zmmul -target-feature -zvl256b -target-feature -zvl512b
-target-feature -zvl1024b -target-feature -zvl2048b -target-feature -zvl4096b
-target-feature -zvl8192b -target-feature -zvl16384b -target-feature -zvl32768b
-target-feature -zvl65536b -target-feature -zicbom -target-feature -zicboz
-target-feature -zicbop -target-feature -svnapot -target-feature -svpbmt
-target-feature -svinval -target-feature -xventanacondops -target-feature
-xtheadvdot -target-feature -experimental-zihintntl -target-feature
-experimental-zca -target-feature -experimental-zcd -target-feature
-experimental-zcf -target-feature -experimental-zvfh -target-feature
-experimental-zawrs -target-feature -experimental-ztso -target-feature +relax
-target-feature -save-restore -target-abi lp64d -msmall-data-limit 8 -mllvm
-treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v
-fcoverage-compilation-dir=/home/malat/highway/bin -resource-dir
/usr/lib/llvm-16/lib/clang/16 -internal-isystem
/usr/lib/llvm-16/lib/clang/16/include -internal-isystem /usr/local/include
-internal-isystem
/usr/bin/../lib/gcc/riscv64-linux-gnu/13/../../../../riscv64-linux-gnu/include
-internal-externc-isystem /usr/include/riscv64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdebug-compilation-dir=/home/malat/highway/bin -ferror-limit 19
-fno-signed-char -fgnuc-version=4.2.1 -fcolor-diagnostics -faddrsig -o
vsseg4e8.o -x c vsseg4e8.c
clang -cc1 version 16.0.0 based upon LLVM 16.0.0 default target
riscv64-unknown-linux-gnu
ignoring nonexistent directory
"/usr/bin/../lib/gcc/riscv64-linux-gnu/13/../../../../riscv64-linux-gnu/include"
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/llvm-16/lib/clang/16/include
 /usr/local/include
 /usr/include/riscv64-linux-gnu
 /usr/include
End of search list.

while:

 % gcc-13 -v -march=rv64gcv1p0 -c vsseg4e8.c
Using built-in specs.
COLLECT_GCC=gcc-13
Target: riscv64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 13-20230411-1'
--with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2,rust --prefix=/usr
--with-gcc-major-version-only --program-suffix=-13
--program-prefix=riscv64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new
--enable-gnu-unique-object --disable-libitm --disable-libquadmath
--disable-libquadmath-support --enable-plugin --enable-default-pie
--with-system-zlib --enable-libphobos-checking=release
--with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch
--disable-werror --disable-multilib --with-arch=rv64gc --with-abi=lp64d
--enable-checking=release --build=riscv64-linux-gnu --host=riscv64-linux-gnu
--target=riscv64-linux-gnu --with-build-config=bootstrap-lto-lean
--enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.0.1 20230411 (experimental) [master r13-7137-gb8e32978e3d]
(Debian 13-20230411-1)
COLLECT_GCC_OPTIONS='-v' '-march=rv64gcv1p0' '-c' '-mabi=lp64d'
'-misa-spec=20191213'
'-march=rv64imafdc_v1p0_zicsr_zifencei_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b'
 /usr/libexec/gcc/riscv64-linux-gnu/13/cc1 -quiet -v -imultilib . -imultiarch
riscv64-linux-gnu vsseg4e8.c -quiet -dumpbase vsseg4e8.c -dumpbase-ext .c
-march=rv64gcv1p0 -mabi=lp64d -misa-spec=20191213
-march=rv64imafdc_v1p0_zicsr_zifencei_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b
-version -o /tmp/ccsEMzEZ.s
GNU C17 (Debian 13-20230411-1) version 13.0.1 20230411 (experimental) [master
r13-7137-gb8e32978e3d] (riscv64-linux-gnu)
        compiled by GNU C version 13.0.1 20230411 (experimental) [master
r13-7137-gb8e32978e3d], GMP version 6.2.1, MPFR version 4.2.0, MPC version
1.3.1, isl version isl-0.25-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include/riscv64-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/riscv64-linux-gnu/13/include-fixed/riscv64-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/riscv64-linux-gnu/13/include-fixed"
ignoring nonexistent directory
"/usr/lib/gcc/riscv64-linux-gnu/13/../../../../riscv64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/riscv64-linux-gnu/13/include
 /usr/local/include
 /usr/include/riscv64-linux-gnu
 /usr/include
End of search list.
Compiler executable checksum: 9e4d02f8622c8218cd049d5da5da543c
vsseg4e8.c: In function 'test_vsseg4e8_v_i8mf8':
vsseg4e8.c:8:10: warning: implicit declaration of function
'__riscv_vsseg4e8_v_i8mf8'; did you mean '__riscv_vsse8_v_i8mf8'?
[-Wimplicit-function-declaration]
    8 |   return __riscv_vsseg4e8_v_i8mf8(base, v0, v1, v2, v3, vl);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
      |          __riscv_vsse8_v_i8mf8
[.....]
COLLECT_GCC_OPTIONS='-v' '-march=rv64gcv1p0' '-c' '-mabi=lp64d'
'-misa-spec=20191213'
'-march=rv64imafdc_v1p0_zicsr_zifencei_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b'
 as -v --traditional-format -fpic -march=rv64gcv1p0
-march=rv64imafdc_v1p0_zicsr_zifencei_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b
-mabi=lp64d -misa-spec=20191213 -o vsseg4e8.o /tmp/ccsEMzEZ.s
GNU assembler version 2.40 (riscv64-linux-gnu) using BFD version (GNU Binutils
for Debian) 2.40
COMPILER_PATH=/usr/libexec/gcc/riscv64-linux-gnu/13/:/usr/libexec/gcc/riscv64-linux-gnu/13/:/usr/libexec/gcc/riscv64-linux-gnu/:/usr/lib/gcc/riscv64-linux-gnu/13/:/usr/lib/gcc/riscv64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/riscv64-linux-gnu/13/:/lib/riscv64-linux-gnu/:/lib/:/usr/lib/riscv64-linux-gnu/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-march=rv64gcv1p0' '-c' '-mabi=lp64d'
'-misa-spec=20191213'
'-march=rv64imafdc_v1p0_zicsr_zifencei_zve32f_zve32x_zve64d_zve64f_zve64x_zvl128b_zvl32b_zvl64b'

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/109544] implicit declaration of function '__riscv_vsseg4e8_v_i8mf8'
  2023-04-18 14:04 [Bug target/109544] New: implicit declaration of function '__riscv_vsseg4e8_v_i8mf8' malat at debian dot org
@ 2023-04-18 14:10 ` juzhe.zhong at rivai dot ai
  2023-04-18 14:15 ` malat at debian dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-04-18 14:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109544

--- Comment #1 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
We don't support segment yet since segment load/store api will be changed.

For example:
The old api:
__riscv_vsseg4e8_v_i8mf8(base, vint8mf8_t v0, vint8mf8_t v1, vint8mf8_t v2,
vint8mf8_t v3, vl);

will be changed into:
__riscv_vsseg4e8_v_i8mf8(base, vint8mf8x4_t v0, vl);

The latest segment load/store are not merged yet:
https://github.com/riscv-non-isa/rvv-intrinsic-doc/pull/198

but will be soon merged.

GCC will not implement old api, instead
we are implementing latest api recently and they are expected in GCC 14.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/109544] implicit declaration of function '__riscv_vsseg4e8_v_i8mf8'
  2023-04-18 14:04 [Bug target/109544] New: implicit declaration of function '__riscv_vsseg4e8_v_i8mf8' malat at debian dot org
  2023-04-18 14:10 ` [Bug target/109544] " juzhe.zhong at rivai dot ai
@ 2023-04-18 14:15 ` malat at debian dot org
  2023-04-21  7:03 ` juzhe.zhong at rivai dot ai
  2023-05-03 22:56 ` juzhe.zhong at rivai dot ai
  3 siblings, 0 replies; 5+ messages in thread
From: malat at debian dot org @ 2023-04-18 14:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109544

Mathieu Malaterre <malat at debian dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Mathieu Malaterre <malat at debian dot org> ---
ok then. Closing as resolved/invalid then !

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/109544] implicit declaration of function '__riscv_vsseg4e8_v_i8mf8'
  2023-04-18 14:04 [Bug target/109544] New: implicit declaration of function '__riscv_vsseg4e8_v_i8mf8' malat at debian dot org
  2023-04-18 14:10 ` [Bug target/109544] " juzhe.zhong at rivai dot ai
  2023-04-18 14:15 ` malat at debian dot org
@ 2023-04-21  7:03 ` juzhe.zhong at rivai dot ai
  2023-05-03 22:56 ` juzhe.zhong at rivai dot ai
  3 siblings, 0 replies; 5+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-04-21  7:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109544

--- Comment #3 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
Hi, I have supported the latest segment intrinsics api in these following
patches which are already reviewed by kito:

https://gcc.gnu.org/pipermail/gcc-patches/2023-April/615811.html
https://gcc.gnu.org/pipermail/gcc-patches/2023-April/616190.html
https://gcc.gnu.org/pipermail/gcc-patches/2023-April/616367.html

I think they will be merged into trunk.
But not sure whether kito is planning to backport them to GCC-13.

Wait for Kito's comments.

Thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/109544] implicit declaration of function '__riscv_vsseg4e8_v_i8mf8'
  2023-04-18 14:04 [Bug target/109544] New: implicit declaration of function '__riscv_vsseg4e8_v_i8mf8' malat at debian dot org
                   ` (2 preceding siblings ...)
  2023-04-21  7:03 ` juzhe.zhong at rivai dot ai
@ 2023-05-03 22:56 ` juzhe.zhong at rivai dot ai
  3 siblings, 0 replies; 5+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-05-03 22:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109544

--- Comment #4 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
(In reply to Mathieu Malaterre from comment #2)
> ok then. Closing as resolved/invalid then !

Hi, the GCC master has supported the latest segment intrinsics.
Would you mind using the latest segment intrinsics ?

Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-03 22:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-18 14:04 [Bug target/109544] New: implicit declaration of function '__riscv_vsseg4e8_v_i8mf8' malat at debian dot org
2023-04-18 14:10 ` [Bug target/109544] " juzhe.zhong at rivai dot ai
2023-04-18 14:15 ` malat at debian dot org
2023-04-21  7:03 ` juzhe.zhong at rivai dot ai
2023-05-03 22:56 ` juzhe.zhong at rivai dot ai

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).