public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] RISC-V: Tweak the wording for the sorry message
@ 2024-01-19  2:34 Kito Cheng
  2024-01-19  2:35 ` juzhe.zhong
  0 siblings, 1 reply; 5+ messages in thread
From: Kito Cheng @ 2024-01-19  2:34 UTC (permalink / raw)
  To: rep.dot.nop, jeffreyalaw, rdapp.gcc, juzhe.zhong, gcc-patches; +Cc: Kito Cheng

Use "does not" rather than "cannot", because it's implementation issue.

gcc/ChangeLog:

	* config/riscv/riscv.cc (riscv_override_options_internal): Tweak
	sorry message.
---
 gcc/config/riscv/riscv.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index f1d5129397f..dd6e68a08c2 100644
--- a/gcc/config/riscv/riscv.cc
+++ b/gcc/config/riscv/riscv.cc
@@ -8798,13 +8798,13 @@ riscv_override_options_internal (struct gcc_options *opts)
 
      We can only allow TARGET_MIN_VLEN * 8 (LMUL) < 65535.  */
   if (TARGET_MIN_VLEN_OPTS (opts) > 4096)
-    sorry ("Current RISC-V GCC cannot support VLEN greater than 4096bit for "
+    sorry ("Current RISC-V GCC does not support VLEN greater than 4096bit for "
 	   "'V' Extension");
 
   /* FIXME: We don't support RVV in big-endian for now, we may enable RVV with
      big-endian after finishing full coverage testing.  */
   if (TARGET_VECTOR && TARGET_BIG_ENDIAN)
-    sorry ("Current RISC-V GCC cannot support RVV in big-endian mode");
+    sorry ("Current RISC-V GCC does not support RVV in big-endian mode");
 
   /* Convert -march to a chunks count.  */
   riscv_vector_chunks = riscv_convert_vector_bits (opts);
-- 
2.34.1


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

* Re: [PATCH] RISC-V: Tweak the wording for the sorry message
  2024-01-19  2:34 [PATCH] RISC-V: Tweak the wording for the sorry message Kito Cheng
@ 2024-01-19  2:35 ` juzhe.zhong
  2024-01-19  2:41   ` Kito Cheng
  0 siblings, 1 reply; 5+ messages in thread
From: juzhe.zhong @ 2024-01-19  2:35 UTC (permalink / raw)
  To: Kito.cheng, rep.dot.nop, jeffreyalaw, Robin Dapp, gcc-patches; +Cc: Kito.cheng

[-- Attachment #1: Type: text/plain, Size: 1506 bytes --]

OK



juzhe.zhong@rivai.ai
 
From: Kito Cheng
Date: 2024-01-19 10:34
To: rep.dot.nop; jeffreyalaw; rdapp.gcc; juzhe.zhong; gcc-patches
CC: Kito Cheng
Subject: [PATCH] RISC-V: Tweak the wording for the sorry message
Use "does not" rather than "cannot", because it's implementation issue.
 
gcc/ChangeLog:
 
* config/riscv/riscv.cc (riscv_override_options_internal): Tweak
sorry message.
---
gcc/config/riscv/riscv.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
 
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index f1d5129397f..dd6e68a08c2 100644
--- a/gcc/config/riscv/riscv.cc
+++ b/gcc/config/riscv/riscv.cc
@@ -8798,13 +8798,13 @@ riscv_override_options_internal (struct gcc_options *opts)
      We can only allow TARGET_MIN_VLEN * 8 (LMUL) < 65535.  */
   if (TARGET_MIN_VLEN_OPTS (opts) > 4096)
-    sorry ("Current RISC-V GCC cannot support VLEN greater than 4096bit for "
+    sorry ("Current RISC-V GCC does not support VLEN greater than 4096bit for "
   "'V' Extension");
   /* FIXME: We don't support RVV in big-endian for now, we may enable RVV with
      big-endian after finishing full coverage testing.  */
   if (TARGET_VECTOR && TARGET_BIG_ENDIAN)
-    sorry ("Current RISC-V GCC cannot support RVV in big-endian mode");
+    sorry ("Current RISC-V GCC does not support RVV in big-endian mode");
   /* Convert -march to a chunks count.  */
   riscv_vector_chunks = riscv_convert_vector_bits (opts);
-- 
2.34.1
 
 

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

* Re: [PATCH] RISC-V: Tweak the wording for the sorry message
  2024-01-19  2:35 ` juzhe.zhong
@ 2024-01-19  2:41   ` Kito Cheng
  2024-01-19  9:40     ` rep.dot.nop
  0 siblings, 1 reply; 5+ messages in thread
From: Kito Cheng @ 2024-01-19  2:41 UTC (permalink / raw)
  To: juzhe.zhong; +Cc: Kito.cheng, rep.dot.nop, jeffreyalaw, Robin Dapp, gcc-patches

Thanks, pushed to trunk :)

On Fri, Jan 19, 2024 at 10:36 AM juzhe.zhong@rivai.ai
<juzhe.zhong@rivai.ai> wrote:
>
> OK
>
> ________________________________
> juzhe.zhong@rivai.ai
>
>
> From: Kito Cheng
> Date: 2024-01-19 10:34
> To: rep.dot.nop; jeffreyalaw; rdapp.gcc; juzhe.zhong; gcc-patches
> CC: Kito Cheng
> Subject: [PATCH] RISC-V: Tweak the wording for the sorry message
> Use "does not" rather than "cannot", because it's implementation issue.
>
> gcc/ChangeLog:
>
> * config/riscv/riscv.cc (riscv_override_options_internal): Tweak
> sorry message.
> ---
> gcc/config/riscv/riscv.cc | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
> index f1d5129397f..dd6e68a08c2 100644
> --- a/gcc/config/riscv/riscv.cc
> +++ b/gcc/config/riscv/riscv.cc
> @@ -8798,13 +8798,13 @@ riscv_override_options_internal (struct gcc_options *opts)
>       We can only allow TARGET_MIN_VLEN * 8 (LMUL) < 65535.  */
>    if (TARGET_MIN_VLEN_OPTS (opts) > 4096)
> -    sorry ("Current RISC-V GCC cannot support VLEN greater than 4096bit for "
> +    sorry ("Current RISC-V GCC does not support VLEN greater than 4096bit for "
>    "'V' Extension");
>    /* FIXME: We don't support RVV in big-endian for now, we may enable RVV with
>       big-endian after finishing full coverage testing.  */
>    if (TARGET_VECTOR && TARGET_BIG_ENDIAN)
> -    sorry ("Current RISC-V GCC cannot support RVV in big-endian mode");
> +    sorry ("Current RISC-V GCC does not support RVV in big-endian mode");
>    /* Convert -march to a chunks count.  */
>    riscv_vector_chunks = riscv_convert_vector_bits (opts);
> --
> 2.34.1
>
>

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

* Re: [PATCH] RISC-V: Tweak the wording for the sorry message
  2024-01-19  2:41   ` Kito Cheng
@ 2024-01-19  9:40     ` rep.dot.nop
  2024-01-19  9:43       ` juzhe.zhong
  0 siblings, 1 reply; 5+ messages in thread
From: rep.dot.nop @ 2024-01-19  9:40 UTC (permalink / raw)
  To: Kito Cheng, juzhe.zhong; +Cc: Kito.cheng, jeffreyalaw, Robin Dapp, gcc-patches

On 19 January 2024 03:41:57 CET, Kito Cheng <kito.cheng@gmail.com> wrote:
>Thanks, pushed to trunk :)

Thanks, but don't you have to update the tests too, at least
gcc/testsuite/gcc.target/riscv/rvv/base/big_endian-2.c ?

thanks

>
>On Fri, Jan 19, 2024 at 10:36 AM juzhe.zhong@rivai.ai
><juzhe.zhong@rivai.ai> wrote:
>>
>> OK
>>
>> ________________________________
>> juzhe.zhong@rivai.ai
>>
>>
>> From: Kito Cheng
>> Date: 2024-01-19 10:34
>> To: rep.dot.nop; jeffreyalaw; rdapp.gcc; juzhe.zhong; gcc-patches
>> CC: Kito Cheng
>> Subject: [PATCH] RISC-V: Tweak the wording for the sorry message
>> Use "does not" rather than "cannot", because it's implementation issue.
>>
>> gcc/ChangeLog:
>>
>> * config/riscv/riscv.cc (riscv_override_options_internal): Tweak
>> sorry message.
>> ---
>> gcc/config/riscv/riscv.cc | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
>> index f1d5129397f..dd6e68a08c2 100644
>> --- a/gcc/config/riscv/riscv.cc
>> +++ b/gcc/config/riscv/riscv.cc
>> @@ -8798,13 +8798,13 @@ riscv_override_options_internal (struct gcc_options *opts)
>>       We can only allow TARGET_MIN_VLEN * 8 (LMUL) < 65535.  */
>>    if (TARGET_MIN_VLEN_OPTS (opts) > 4096)
>> -    sorry ("Current RISC-V GCC cannot support VLEN greater than 4096bit for "
>> +    sorry ("Current RISC-V GCC does not support VLEN greater than 4096bit for "
>>    "'V' Extension");
>>    /* FIXME: We don't support RVV in big-endian for now, we may enable RVV with
>>       big-endian after finishing full coverage testing.  */
>>    if (TARGET_VECTOR && TARGET_BIG_ENDIAN)
>> -    sorry ("Current RISC-V GCC cannot support RVV in big-endian mode");
>> +    sorry ("Current RISC-V GCC does not support RVV in big-endian mode");
>>    /* Convert -march to a chunks count.  */
>>    riscv_vector_chunks = riscv_convert_vector_bits (opts);
>> --
>> 2.34.1
>>
>>


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

* Re: Re: [PATCH] RISC-V: Tweak the wording for the sorry message
  2024-01-19  9:40     ` rep.dot.nop
@ 2024-01-19  9:43       ` juzhe.zhong
  0 siblings, 0 replies; 5+ messages in thread
From: juzhe.zhong @ 2024-01-19  9:43 UTC (permalink / raw)
  To: rep.dot.nop, kito.cheng; +Cc: Kito.cheng, jeffreyalaw, Robin Dapp, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 5257 bytes --]

Yeah. There is regression here:

Executing on host: /work/home/jzzhong/work/docker/riscv-gnu-toolchain/build/dev-rv64gcv-lp64d-medany-newlib-spike-release-m1-scalable/build-gcc-newlib-stage2/gcc/xgcc -B/work/home/jzzhong/work/docker/riscv-gnu-toolchain/build/dev-rv64gcv-lp64d-medany-newlib-spike-release-m1-scalable/build-gcc-newlib-stage2/gcc/  /work/home/jzzhong/work/docker/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.target/riscv/rvv/base/big_endian-1.c  -march=rv64gcv -mabi=lp64d -mcmodel=medany   -fdiagnostics-plain-output   -march=rv64gcv -mabi=lp64d -mbig-endian -O3 -S   -o big_endian-1.s    (timeout = 600000)
spawn -ignore SIGHUP /work/home/jzzhong/work/docker/riscv-gnu-toolchain/build/dev-rv64gcv-lp64d-medany-newlib-spike-release-m1-scalable/build-gcc-newlib-stage2/gcc/xgcc -B/work/home/jzzhong/work/docker/riscv-gnu-toolchain/build/dev-rv64gcv-lp64d-medany-newlib-spike-release-m1-scalable/build-gcc-newlib-stage2/gcc/ /work/home/jzzhong/work/docker/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.target/riscv/rvv/base/big_endian-1.c -march=rv64gcv -mabi=lp64d -mcmodel=medany -fdiagnostics-plain-output -march=rv64gcv -mabi=lp64d -mbig-endian -O3 -S -o big_endian-1.s^M
cc1: sorry, unimplemented: Current RISC-V GCC does not support RVV in big-endian mode^M
compiler exited with status 1
XFAIL: gcc.target/riscv/rvv/base/big_endian-1.c (test for excess errors)
Excess errors:
cc1: sorry, unimplemented: Current RISC-V GCC does not support RVV in big-endian mode

Executing on host: /work/home/jzzhong/work/docker/riscv-gnu-toolchain/build/dev-rv64gcv-lp64d-medany-newlib-spike-release-m1-scalable/build-gcc-newlib-stage2/gcc/xgcc -B/work/home/jzzhong/work/docker/riscv-gnu-toolchain/build/dev-rv64gcv-lp64d-medany-newlib-spike-release-m1-scalable/build-gcc-newlib-stage2/gcc/  /work/home/jzzhong/work/docker/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.target/riscv/rvv/base/big_endian-2.c  -march=rv64gcv -mabi=lp64d -mcmodel=medany   -fdiagnostics-plain-output   -march=rv64gc_zve32x -mabi=lp64d -mbig-endian -O3 -S   -o big_endian-2.s    (timeout = 600000)
spawn -ignore SIGHUP /work/home/jzzhong/work/docker/riscv-gnu-toolchain/build/dev-rv64gcv-lp64d-medany-newlib-spike-release-m1-scalable/build-gcc-newlib-stage2/gcc/xgcc -B/work/home/jzzhong/work/docker/riscv-gnu-toolchain/build/dev-rv64gcv-lp64d-medany-newlib-spike-release-m1-scalable/build-gcc-newlib-stage2/gcc/ /work/home/jzzhong/work/docker/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.target/riscv/rvv/base/big_endian-2.c -march=rv64gcv -mabi=lp64d -mcmodel=medany -fdiagnostics-plain-output -march=rv64gc_zve32x -mabi=lp64d -mbig-endian -O3 -S -o big_endian-2.s^M
cc1: sorry, unimplemented: Current RISC-V GCC does not support RVV in big-endian mode^M
compiler exited with status 1
XFAIL: gcc.target/riscv/rvv/base/big_endian-2.c (test for excess errors)
Excess errors:
cc1: sorry, unimplemented: Current RISC-V GCC does not support RVV in big-endian mode

I think zvl_unimplemented-1.c and zvl_unimplemented-2.c should also be fixed.



juzhe.zhong@rivai.ai
 
From: rep.dot.nop
Date: 2024-01-19 17:40
To: Kito Cheng; juzhe.zhong@rivai.ai
CC: Kito.cheng; jeffreyalaw; Robin Dapp; gcc-patches
Subject: Re: [PATCH] RISC-V: Tweak the wording for the sorry message
On 19 January 2024 03:41:57 CET, Kito Cheng <kito.cheng@gmail.com> wrote:
>Thanks, pushed to trunk :)
 
Thanks, but don't you have to update the tests too, at least
gcc/testsuite/gcc.target/riscv/rvv/base/big_endian-2.c ?
 
thanks
 
>
>On Fri, Jan 19, 2024 at 10:36 AM juzhe.zhong@rivai.ai
><juzhe.zhong@rivai.ai> wrote:
>>
>> OK
>>
>> ________________________________
>> juzhe.zhong@rivai.ai
>>
>>
>> From: Kito Cheng
>> Date: 2024-01-19 10:34
>> To: rep.dot.nop; jeffreyalaw; rdapp.gcc; juzhe.zhong; gcc-patches
>> CC: Kito Cheng
>> Subject: [PATCH] RISC-V: Tweak the wording for the sorry message
>> Use "does not" rather than "cannot", because it's implementation issue.
>>
>> gcc/ChangeLog:
>>
>> * config/riscv/riscv.cc (riscv_override_options_internal): Tweak
>> sorry message.
>> ---
>> gcc/config/riscv/riscv.cc | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
>> index f1d5129397f..dd6e68a08c2 100644
>> --- a/gcc/config/riscv/riscv.cc
>> +++ b/gcc/config/riscv/riscv.cc
>> @@ -8798,13 +8798,13 @@ riscv_override_options_internal (struct gcc_options *opts)
>>       We can only allow TARGET_MIN_VLEN * 8 (LMUL) < 65535.  */
>>    if (TARGET_MIN_VLEN_OPTS (opts) > 4096)
>> -    sorry ("Current RISC-V GCC cannot support VLEN greater than 4096bit for "
>> +    sorry ("Current RISC-V GCC does not support VLEN greater than 4096bit for "
>>    "'V' Extension");
>>    /* FIXME: We don't support RVV in big-endian for now, we may enable RVV with
>>       big-endian after finishing full coverage testing.  */
>>    if (TARGET_VECTOR && TARGET_BIG_ENDIAN)
>> -    sorry ("Current RISC-V GCC cannot support RVV in big-endian mode");
>> +    sorry ("Current RISC-V GCC does not support RVV in big-endian mode");
>>    /* Convert -march to a chunks count.  */
>>    riscv_vector_chunks = riscv_convert_vector_bits (opts);
>> --
>> 2.34.1
>>
>>
 
 

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

end of thread, other threads:[~2024-01-19  9:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-19  2:34 [PATCH] RISC-V: Tweak the wording for the sorry message Kito Cheng
2024-01-19  2:35 ` juzhe.zhong
2024-01-19  2:41   ` Kito Cheng
2024-01-19  9:40     ` rep.dot.nop
2024-01-19  9:43       ` juzhe.zhong

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