Git rejecting branch merge

2020-09-29 Thread Jan Hubicka
Hello, I am trying to update me/honza-gcc-benchmark-branch to current trunk which I do by deleting it, recreating locally and pushing out. The problem is that the push fails witih: remote: *** The following commit was rejected by your hooks.commit-extra-checker script (status: 1) remote: *** com

mstackalign vs rbp order in gcc optimization level epilogue/prologue - O2/O3

2020-09-29 Thread AJ D via Gcc
Hi, I was looking at the implementation of mstackalign in gcc (O2/O3) and it looks like we generate code for mstackalign (i.e. generate instructions for stack alignment) before pushing $rbp to stack/setting $rbp. In the epilogue, we do the same in reverse order. some_routine: 0x00

Re: On IPA PTA field sensitivity and pointer expression (part 2)

2020-09-29 Thread Erick Ochoa
Hi, answering my own question: It looks that field_sensitivity was disabled for this particular example. Because I was compiling with -O as opposed to -O2. (I disable -O2 because I needed to parse gimple exactly as I wrote it, otherwise some things might be optimized). After adding --param=ma

Re: Git rejecting branch merge

2020-09-29 Thread Richard Biener via Gcc
On Tue, Sep 29, 2020 at 9:17 AM Jan Hubicka wrote: > > Hello, > I am trying to update me/honza-gcc-benchmark-branch to current trunk > which I do by deleting it, recreating locally and pushing out. > > The problem is that the push fails witih: > > remote: *** The following commit was rejected by y

[PATCH 0/8] Add some types

2020-09-29 Thread Alejandro Colomar via Gcc
Hi Michael, I started with types. I joined them by groups: intN_t instead of having an entry for each int8_t, int16_t, ... I think that way I could better explain the types, common things, differences, and exceptions. I'll wait until you review them to write about the remaining types: [u]int_le

Re: Git rejecting branch merge

2020-09-29 Thread Jan Hubicka
> On Tue, Sep 29, 2020 at 9:17 AM Jan Hubicka wrote: > > > > Hello, > > I am trying to update me/honza-gcc-benchmark-branch to current trunk > > which I do by deleting it, recreating locally and pushing out. > > > > The problem is that the push fails witih: > > > > remote: *** The following commit

Re: Git rejecting branch merge

2020-09-29 Thread Richard Biener via Gcc
On Tue, Sep 29, 2020 at 11:11 AM Jan Hubicka wrote: > > > On Tue, Sep 29, 2020 at 9:17 AM Jan Hubicka wrote: > > > > > > Hello, > > > I am trying to update me/honza-gcc-benchmark-branch to current trunk > > > which I do by deleting it, recreating locally and pushing out. > > > > > > The problem i

Re: mstackalign vs rbp order in gcc optimization level epilogue/prologue - O2/O3

2020-09-29 Thread Eric Botcazou
> Would you folks consider this as a GCC bug? Do you folks see any issue in > the CLANG approach? Is there a way (any switch) in gcc which would reverse > the order of ‘setting %rbp’ vs ‘stack alignment code’ (like CLANG)? How does Clang align the frame pointer? What happens if the function uses

[PATCH v2 0/8] Add some types

2020-09-29 Thread Alejandro Colomar via Gcc
Hi Michael, I made a mistake when sending the emails, and I only CCd linux-man (and other lists) in PATCH 0/8. The rest were only sent to you. Actually, I was playing with the --cc option in git format-patch. I'm resending all of them as v2. I fixed a typo in 5/8, while the rest are all identic

[PATCH v2 2/8] intmax_t.3: New link to system_data_types(7)

2020-09-29 Thread Alejandro Colomar via Gcc
Signed-off-by: Alejandro Colomar --- man3/intmax_t.3 | 1 + 1 file changed, 1 insertion(+) create mode 100644 man3/intmax_t.3 diff --git a/man3/intmax_t.3 b/man3/intmax_t.3 new file mode 100644 index 0..db50c0f09 --- /dev/null +++ b/man3/intmax_t.3 @@ -0,0 +1 @@ +.so man7/system_data_ty

[PATCH v2 1/8] system_data_types.7: Add 'intmax_t'

2020-09-29 Thread Alejandro Colomar via Gcc
Signed-off-by: Alejandro Colomar --- man7/system_data_types.7 | 56 1 file changed, 56 insertions(+) diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 index fe6e90afe..e718b3c30 100644 --- a/man7/system_data_types.7 +++ b/man7/system_data_t

[PATCH v2 3/8] system_data_types.7: Add 'uintmax_t'

2020-09-29 Thread Alejandro Colomar via Gcc
Signed-off-by: Alejandro Colomar --- man7/system_data_types.7 | 55 1 file changed, 55 insertions(+) diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 index e718b3c30..2e7aca7d2 100644 --- a/man7/system_data_types.7 +++ b/man7/system_data_t

[PATCH v2 5/8] system_data_types.7: Add intN_t family of types

2020-09-29 Thread Alejandro Colomar via Gcc
Signed-off-by: Alejandro Colomar --- man7/system_data_types.7 | 79 1 file changed, 79 insertions(+) diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 index 2e7aca7d2..9b8244649 100644 --- a/man7/system_data_types.7 +++ b/man7/system_data_t

[PATCH v2 4/8] uintmax_t.3: New link to system_data_types(7)

2020-09-29 Thread Alejandro Colomar via Gcc
Signed-off-by: Alejandro Colomar --- man3/uintmax_t.3 | 1 + 1 file changed, 1 insertion(+) create mode 100644 man3/uintmax_t.3 diff --git a/man3/uintmax_t.3 b/man3/uintmax_t.3 new file mode 100644 index 0..db50c0f09 --- /dev/null +++ b/man3/uintmax_t.3 @@ -0,0 +1 @@ +.so man7/system_da

[PATCH v2 6/8] int8_t.3, int16_t.3, int32_t.3, int64_t.3, intN_t.3: New links to system_data_types(7)

2020-09-29 Thread Alejandro Colomar via Gcc
Signed-off-by: Alejandro Colomar --- man3/int16_t.3 | 1 + man3/int32_t.3 | 1 + man3/int64_t.3 | 1 + man3/int8_t.3 | 1 + man3/intN_t.3 | 1 + 5 files changed, 5 insertions(+) create mode 100644 man3/int16_t.3 create mode 100644 man3/int32_t.3 create mode 100644 man3/int64_t.3 create mode

[PATCH v2 7/8] system_data_types.7: Add uintN_t family of types

2020-09-29 Thread Alejandro Colomar via Gcc
Signed-off-by: Alejandro Colomar --- man7/system_data_types.7 | 82 1 file changed, 82 insertions(+) diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 index 9b8244649..2f21e6849 100644 --- a/man7/system_data_types.7 +++ b/man7/system_data_t

[PATCH v2 8/8] uint8_t.3, uint16_t.3, uint32_t.3, uint64_t.3, uintN_t.3: New links to system_data_types(7)

2020-09-29 Thread Alejandro Colomar via Gcc
Signed-off-by: Alejandro Colomar --- man3/uint16_t.3 | 1 + man3/uint32_t.3 | 1 + man3/uint64_t.3 | 1 + man3/uint8_t.3 | 1 + man3/uintN_t.3 | 1 + 5 files changed, 5 insertions(+) create mode 100644 man3/uint16_t.3 create mode 100644 man3/uint32_t.3 create mode 100644 man3/uint64_t.3 cre

Re: [PATCH v2 0/8] Add some types

2020-09-29 Thread Alejandro Colomar via Gcc
D'oh! Now I had a typo when CCing myself :(

Is there a way to tell GCC not to reorder a specific instruction?

2020-09-29 Thread 夏 晋 via Gcc
Hi everyone, I tried to set the "vlen" after the add & multi, as shown in the following code: ➜ vf32 x3,x4; void foo1(float16_t* input, float16_t* output, int vlen){ vf32 add = x3 + x4; vf32 mul = x3 * x4; __builtin_riscv_vlen(vlen); //< storevf(&output[0], add); storevf(&o

Re: [PATCH 0/8] Add some types

2020-09-29 Thread Michael Kerrisk (man-pages) via Gcc
Hi Alex On Tue, 29 Sep 2020 at 10:26, Alejandro Colomar wrote: > > Hi Michael, > > I started with types. Good. I wanted those the other day :-), but then I saw they weren't in the page yet! > I joined them by groups: > intN_t instead of having an entry for each int8_t, int16_t, ... > I think t

Re: Is there a way to tell GCC not to reorder a specific instruction?

2020-09-29 Thread Richard Biener via Gcc
On Tue, Sep 29, 2020 at 12:55 PM 夏 晋 via Gcc wrote: > > Hi everyone, > I tried to set the "vlen" after the add & multi, as shown in the following > code: > ➜ > vf32 x3,x4; > void foo1(float16_t* input, float16_t* output, int vlen){ > vf32 add = x3 + x4; > vf32 mul = x3 * x4; > __built

Re: [PATCH 0/8] Add some types

2020-09-29 Thread Alejandro Colomar via Gcc
Hi Michael, On 2020-09-29 13:50, Michael Kerrisk (man-pages) wrote: > Hi Alex > > On Tue, 29 Sep 2020 at 10:26, Alejandro Colomar wrote: >> >> Hi Michael, >> >> I started with types. > > Good. I wanted those the other day :-), but then I saw they weren't in > the page yet! They were complica

回复: Is there a way to tell GCC not to reorder a specific instruction?

2020-09-29 Thread 夏 晋 via Gcc
Hi Richard, Thank you for your reply. If we use < asm volatile ("crsw\tvlen, %0" : "=r" (add), "=r" (mul) : "0" (add),"0" (mul), "rJ" (vlen)); > we need to know all the calculation steps before the "vlen" setting. For example we add a "sub" like: vf32 sub = x3 - x4; at this time, we need to add "

Re: Git rejecting branch merge

2020-09-29 Thread Joseph Myers
On Tue, 29 Sep 2020, Jan Hubicka wrote: > Hello, > I am trying to update me/honza-gcc-benchmark-branch to current trunk > which I do by deleting it, recreating locally and pushing out. > > The problem is that the push fails witih: > > remote: *** The following commit was rejected by your > hook

Re: Git rejecting branch merge

2020-09-29 Thread Joel Brobecker
> > The problem is that the push fails witih: > > > > remote: *** The following commit was rejected by your > > hooks.commit-extra-checker script (status: 1) > > remote: *** commit: 03e87724864a17e22c9b692cc0caa014e9dba6b1 > > remote: *** The first line of a commit message should be a short > > d

Registers used for exception handling on Linux/m68k?

2020-09-29 Thread John Paul Adrian Glaubitz
Hello! I'm looking for an information regarding exception handling on Linux/m68k, in particular I need to know what registers are used by the ABI in order to implement the functions "getExceptionPointerRegister" and "getExceptionSelectorRegister" in the M680x0 backend in LLVM [1], [2]. I looke

Re: First set of patches to allow changing the long double default were posted:

2020-09-29 Thread Jonathan Wakely via Gcc
On Mon, 28 Sep 2020 at 23:15, Joseph Myers wrote: > > On Mon, 28 Sep 2020, Michael Meissner via Gcc wrote: > > > > I'm not sure which patch in the series is supposed to be implementing > > > that, but C requires that long double and _Float128 are distinct types (so > > > you can use _Generic to ch

Re: Git rejecting branch merge

2020-09-29 Thread Joseph Myers
On Tue, 29 Sep 2020, Joel Brobecker wrote: > > > The problem is that the push fails witih: > > > > > > remote: *** The following commit was rejected by your > > > hooks.commit-extra-checker script (status: 1) > > > remote: *** commit: 03e87724864a17e22c9b692cc0caa014e9dba6b1 > > > remote: *** Th

Re: First set of patches to allow changing the long double default were posted:

2020-09-29 Thread Joseph Myers
On Tue, 29 Sep 2020, Jonathan Wakely via Gcc wrote: > I imagine C++ will want to support _Float128 at some point, with > similar semantics to C. Unless it chooses a class-based approach like that used for std::decimal::decimal128. -- Joseph S. Myers jos...@codesourcery.com

Re: Git rejecting branch merge

2020-09-29 Thread Joel Brobecker
> > That's correct. The commit-extra-checker is called using the same list > > of "added commits" as the other checks implemented in the hooks, and > > that list excludes all commits accessible from existing references > > in the repository. > > Since 03e87724864a17e22c9b692cc0caa014e9dba6b1 has b

Re: Git rejecting branch merge

2020-09-29 Thread Joel Brobecker
On Tue, Sep 29, 2020 at 10:01:23AM -0700, Joel Brobecker wrote: > > > That's correct. The commit-extra-checker is called using the same list > > > of "added commits" as the other checks implemented in the hooks, and > > > that list excludes all commits accessible from existing references > > > in t

Re: Git rejecting branch merge

2020-09-29 Thread Joseph Myers
On Tue, 29 Sep 2020, Joel Brobecker wrote: > > > That's correct. The commit-extra-checker is called using the same list > > > of "added commits" as the other checks implemented in the hooks, and > > > that list excludes all commits accessible from existing references > > > in the repository. > >

Re: Git rejecting branch merge

2020-09-29 Thread Jan Hubicka
> On Tue, 29 Sep 2020, Joel Brobecker wrote: > > > > > That's correct. The commit-extra-checker is called using the same list > > > > of "added commits" as the other checks implemented in the hooks, and > > > > that list excludes all commits accessible from existing references > > > > in the repos

Re: Git rejecting branch merge

2020-09-29 Thread Joel Brobecker
On Tue, Sep 29, 2020 at 07:16:45PM +0200, Jan Hubicka wrote: > > On Tue, 29 Sep 2020, Joel Brobecker wrote: > > > > > > > That's correct. The commit-extra-checker is called using the same list > > > > > of "added commits" as the other checks implemented in the hooks, and > > > > > that list exclud

Re: Git rejecting branch merge

2020-09-29 Thread Jan Hubicka
> On Tue, Sep 29, 2020 at 07:16:45PM +0200, Jan Hubicka wrote: > > > On Tue, 29 Sep 2020, Joel Brobecker wrote: > > > > > > > > > That's correct. The commit-extra-checker is called using the same > > > > > > list > > > > > > of "added commits" as the other checks implemented in the hooks, and > >

Re: Registers used for exception handling on Linux/m68k?

2020-09-29 Thread Nathan Sidwell
On 9/29/20 11:22 AM, John Paul Adrian Glaubitz wrote: Hello! I'm looking for an information regarding exception handling on Linux/m68k, in particular I need to know what registers are used by the ABI in order to implement the functions "getExceptionPointerRegister" and "getExceptionSelectorReg

Re: Is there a way to tell GCC not to reorder a specific instruction?

2020-09-29 Thread Jim Wilson
On Tue, Sep 29, 2020 at 3:47 AM 夏 晋 via Gcc wrote: > I tried to set the "vlen" after the add & multi, as shown in the following > code: > vf32 x3,x4; > void foo1(float16_t* input, float16_t* output, int vlen){ > vf32 add = x3 + x4; > vf32 mul = x3 * x4; > __builtin_riscv_vlen(vlen);

Re: New pseudos in splitters

2020-09-29 Thread Hans-Peter Nilsson
On Wed, 23 Sep 2020, Ilya Leoshkevich via Gcc wrote: > Hi, > > "Defining How to Split Instructions" in gccint states the following: > > The preparation-statements are similar to those statements that are > specified for define_expand ... Unlike those in define_expand, however, > these statements mu

回复: Is there a way to tell GCC not to reorder a specific instruction?

2020-09-29 Thread 夏 晋 via Gcc
Hi Jim, Thank you for your reply. I've tried the following code on GCC for RVV extendsion, still met the same issue. ➜ vint16m1_t foo3(vint16m1_t a, vint16m1_t b){ vint16m1_t add = a+b; vint16m1_t mul = a*b; vsetvl_e8m1(32); return add + mul; } the assembly is: ➜ foo3: li a4,

Re: Is there a way to tell GCC not to reorder a specific instruction?

2020-09-29 Thread Richard Biener via Gcc
On Tue, Sep 29, 2020 at 9:46 PM Jim Wilson wrote: > > On Tue, Sep 29, 2020 at 3:47 AM 夏 晋 via Gcc wrote: > > I tried to set the "vlen" after the add & multi, as shown in the following > > code: > > > vf32 x3,x4; > > void foo1(float16_t* input, float16_t* output, int vlen){ > > vf32 add = x3