public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/109312] New: Missing __riscv_v_intrinsic
@ 2023-03-28  7:24 malat at debian dot org
  2023-03-28  9:14 ` [Bug target/109312] " schwab@linux-m68k.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: malat at debian dot org @ 2023-03-28  7:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109312
           Summary: Missing __riscv_v_intrinsic
           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: ---

Currently GCC is missing __riscv_v_intrinsic 

see:

https://github.com/riscv-non-isa/rvv-intrinsic-doc/blob/master/version_macro.adoc

For reference:

% /usr/lib/gcc-snapshot/bin/gcc -Wp,-dM -E -c - < /dev/null | grep risc
#define __riscv 1
#define __riscv_atomic 1
#define __riscv_cmodel_medlow 1
#define __riscv_mul 1
#define __riscv_muldiv 1
#define __riscv_xlen 64
#define __riscv_fsqrt 1
#define __riscv_m 2000000
#define __riscv_fdiv 1
#define __riscv_a 2001000
#define __riscv_c 2000000
#define __riscv_d 2002000
#define __riscv_f 2002000
#define __riscv_i 2001000
#define __riscv_zicsr 2000000
#define __riscv_compressed 1
#define __riscv_float_abi_double 1
#define __riscv_flen 64
#define __riscv_arch_test 1
#define __riscv_div 1
#define __riscv_zifencei 2000000

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

* [Bug target/109312] Missing __riscv_v_intrinsic
  2023-03-28  7:24 [Bug target/109312] New: Missing __riscv_v_intrinsic malat at debian dot org
@ 2023-03-28  9:14 ` schwab@linux-m68k.org
  2023-03-28  9:34 ` malat at debian dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: schwab@linux-m68k.org @ 2023-03-28  9:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
You need at least enable the V extension (-march=rv64gcv).

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

* [Bug target/109312] Missing __riscv_v_intrinsic
  2023-03-28  7:24 [Bug target/109312] New: Missing __riscv_v_intrinsic malat at debian dot org
  2023-03-28  9:14 ` [Bug target/109312] " schwab@linux-m68k.org
@ 2023-03-28  9:34 ` malat at debian dot org
  2023-03-28 15:00 ` cvs-commit at gcc dot gnu.org
  2023-03-28 15:01 ` kito at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: malat at debian dot org @ 2023-03-28  9:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Mathieu Malaterre <malat at debian dot org> ---
(In reply to Andreas Schwab from comment #1)
> You need at least enable the V extension (-march=rv64gcv).

Oh, right ! Here is the correct full listing this time:

% /usr/lib/gcc-snapshot/bin/gcc -march=rv64gcv -Wp,-dM -E -c - < /dev/null |
grep risc
#define __riscv 1
#define __riscv_atomic 1
#define __riscv_v_elen_fp 64
#define __riscv_zvl32b 1000000
#define __riscv_cmodel_medlow 1
#define __riscv_zve64d 1000000
#define __riscv_zve64f 1000000
#define __riscv_zve64x 1000000
#define __riscv_mul 1
#define __riscv_muldiv 1
#define __riscv_xlen 64
#define __riscv_zve32f 1000000
#define __riscv_zve32x 1000000
#define __riscv_zvl128b 1000000
#define __riscv_fsqrt 1
#define __riscv_v_min_vlen 128
#define __riscv_v_elen 64
#define __riscv_m 2000000
#define __riscv_fdiv 1
#define __riscv_a 2001000
#define __riscv_c 2000000
#define __riscv_d 2002000
#define __riscv_f 2002000
#define __riscv_i 2001000
#define __riscv_v 1000000
#define __riscv_zicsr 2000000
#define __riscv_compressed 1
#define __riscv_vector 1
#define __riscv_float_abi_double 1
#define __riscv_flen 64
#define __riscv_arch_test 1
#define __riscv_zvl64b 1000000
#define __riscv_div 1
#define __riscv_zifencei 2000000

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

* [Bug target/109312] Missing __riscv_v_intrinsic
  2023-03-28  7:24 [Bug target/109312] New: Missing __riscv_v_intrinsic malat at debian dot org
  2023-03-28  9:14 ` [Bug target/109312] " schwab@linux-m68k.org
  2023-03-28  9:34 ` malat at debian dot org
@ 2023-03-28 15:00 ` cvs-commit at gcc dot gnu.org
  2023-03-28 15:01 ` kito at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-03-28 15:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kito Cheng <kito@gcc.gnu.org>:

https://gcc.gnu.org/g:5a923516ae61ddc6dd863891db13189cbf392411

commit r13-6909-g5a923516ae61ddc6dd863891db13189cbf392411
Author: Kito Cheng <kito.cheng@sifive.com>
Date:   Tue Mar 28 22:21:50 2023 +0800

    RISC-V: Define __riscv_v_intrinsic [PR109312]

    RVV intrinsic has defined a macro to identity the version of RVV
    intrinsic spec, we missed that before, thanksful we are catch this
    before release.

    gcc/ChangeLog:

            PR target/109312
            * config/riscv/riscv-c.cc (riscv_ext_version_value): New.
            (riscv_cpu_cpp_builtins): Define __riscv_v_intrinsic and
            minor refactor.

    gcc/testsuite/ChangeLog:

            PR target/109312
            * gcc.target/riscv/predef-__riscv_v_intrinsic.c: New test.

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

* [Bug target/109312] Missing __riscv_v_intrinsic
  2023-03-28  7:24 [Bug target/109312] New: Missing __riscv_v_intrinsic malat at debian dot org
                   ` (2 preceding siblings ...)
  2023-03-28 15:00 ` cvs-commit at gcc dot gnu.org
@ 2023-03-28 15:01 ` kito at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: kito at gcc dot gnu.org @ 2023-03-28 15:01 UTC (permalink / raw)
  To: gcc-bugs

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

Kito Cheng <kito at gcc dot gnu.org> changed:

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

--- Comment #4 from Kito Cheng <kito at gcc dot gnu.org> ---
Fixed, let me know if you got any issue on RVV intrinsic, thanks :)

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

end of thread, other threads:[~2023-03-28 15:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-28  7:24 [Bug target/109312] New: Missing __riscv_v_intrinsic malat at debian dot org
2023-03-28  9:14 ` [Bug target/109312] " schwab@linux-m68k.org
2023-03-28  9:34 ` malat at debian dot org
2023-03-28 15:00 ` cvs-commit at gcc dot gnu.org
2023-03-28 15:01 ` kito at gcc dot gnu.org

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