Re: Using nonzero_bits() in insn conditions?

2025-04-05 Thread Georg-Johann Lay via Gcc
Am 21.03.25 um 19:16 schrieb Georg-Johann Lay via Gcc: Am 21.03.25 um 01:02 schrieb Jeff Law: On 3/19/25 4:14 AM, Georg-Johann Lay wrote: Am 16.03.25 um 14:51 schrieb Jeff Law via Gcc: On 3/13/25 5:39 AM, Georg-Johann Lay via Gcc wrote: There are situations where knowledge about which bits

Re: libgcc: Disable building shared objects ?

2025-03-27 Thread Georg-Johann Lay via Gcc
Am 21.03.25 um 15:21 schrieb Richard Biener: On Fri, Mar 21, 2025 at 2:38 PM Georg-Johann Lay wrote: Am 21.03.25 um 08:58 schrieb Richard Biener: On Thu, Mar 20, 2025 at 8:05 PM Georg-Johann Lay via Gcc wrote: For avr, there is no support for shared objects, yet when building libgcc

libgcc: Disable building shared objects ?

2025-03-22 Thread Georg-Johann Lay via Gcc
For avr, there is no support for shared objects, yet when building libgcc, for each module.o there is also module_s.o that's build with -DSHARED. How can this be turned off? What doesn't word is to configure with --disable-shared, and even without turning it off by hand, there is no use for modu

Re: libgcc: Disable building shared objects ?

2025-03-22 Thread Georg-Johann Lay via Gcc
Am 21.03.25 um 08:58 schrieb Richard Biener: On Thu, Mar 20, 2025 at 8:05 PM Georg-Johann Lay via Gcc wrote: For avr, there is no support for shared objects, yet when building libgcc, for each module.o there is also module_s.o that's build with -DSHARED. How can this be turned off?

Re: Using nonzero_bits() in insn conditions?

2025-03-21 Thread Georg-Johann Lay via Gcc
Am 21.03.25 um 01:02 schrieb Jeff Law: On 3/19/25 4:14 AM, Georg-Johann Lay wrote: Am 16.03.25 um 14:51 schrieb Jeff Law via Gcc: On 3/13/25 5:39 AM, Georg-Johann Lay via Gcc wrote: There are situations where knowledge about which bits of a value are (not) set can be used for optimization

Re: Using nonzero_bits() in insn conditions?

2025-03-19 Thread Georg-Johann Lay via Gcc
Am 16.03.25 um 14:51 schrieb Jeff Law via Gcc: On 3/13/25 5:39 AM, Georg-Johann Lay via Gcc wrote: There are situations where knowledge about which bits of a value are (not) set can be used for optimization. For example in an insn combine pattern like: (define_insn_and_split ""

Using nonzero_bits() in insn conditions?

2025-03-13 Thread Georg-Johann Lay via Gcc
There are situations where knowledge about which bits of a value are (not) set can be used for optimization. For example in an insn combine pattern like: (define_insn_and_split "" [(set (match_operand:QI 0 "register_operand" "=d") (ior:QI (ashift:QI (match_operand:

Re: Defining __uint24

2025-01-16 Thread Georg-Johann Lay via Gcc
Am 15.01.25 um 21:58 schrieb Jonathan Wakely: On Wed, 15 Jan 2025 at 20:57, Jakub Jelinek wrote: On Wed, Jan 15, 2025 at 09:36:51PM +0100, Georg-Johann Lay via Gcc wrote: This pedwarn is correct, so I'm not sure why it's a problem. If you don't want warnings about non-stan

Re: Defining __uint24

2025-01-15 Thread Georg-Johann Lay via Gcc
Am 15.01.25 um 20:41 schrieb Jonathan Wakely: On Wed, 15 Jan 2025 at 17:17, Georg-Johann Lay via Gcc wrote: What's the recommended way to built-in define types like __uint24 ? Since v4.8, the avr backend has: avr-modes.def: FRACTIONAL_INT_MODE (PSI, 24, 3); avr.cc:

Defining __uint24

2025-01-15 Thread Georg-Johann Lay via Gcc
What's the recommended way to built-in define types like __uint24 ? Since v4.8, the avr backend has: avr-modes.def: FRACTIONAL_INT_MODE (PSI, 24, 3); avr.cc: tree int24_type = make_signed_type (GET_MODE_BITSIZE (PSImode)); tree uint24_type = make_unsigned_type (GET_MODE_BITSIZE (PSImode)

Re: Understanding peephole2

2024-11-21 Thread Georg-Johann Lay via Gcc
Am 20.11.24 um 11:33 schrieb Richard Biener: On Wed, Nov 20, 2024 at 11:29 AM Georg-Johann Lay via Gcc wrote: Consider the following RTL peephole from avr.md: (define_peephole2 ; avr.md:5387 [(match_scratch:QI 3 "d") (parallel [(set (match_oper

Understanding peephole2

2024-11-20 Thread Georg-Johann Lay via Gcc
Consider the following RTL peephole from avr.md: (define_peephole2 ; avr.md:5387 [(match_scratch:QI 3 "d") (parallel [(set (match_operand:ALL4 0 "register_operand" "") (ashift:ALL4 (match_operand:ALL4 1 "register_operand" "")

Re: Understanding peephole2 PR117699

2024-11-20 Thread Georg-Johann Lay via Gcc
Am 20.11.24 um 11:33 schrieb Richard Biener: On Wed, Nov 20, 2024 at 11:29 AM Georg-Johann Lay via Gcc wrote: Consider the following RTL peephole from avr.md: (define_peephole2 ; avr.md:5387 [(match_scratch:QI 3 "d") (parallel [(set (match_oper

Re: Understanding peephole2

2024-11-20 Thread Georg-Johann Lay via Gcc
Am 20.11.24 um 11:33 schrieb Richard Biener: On Wed, Nov 20, 2024 at 11:29 AM Georg-Johann Lay via Gcc wrote: Consider the following RTL peephole from avr.md: (define_peephole2 ; avr.md:5387 [(match_scratch:QI 3 "d") (parallel [(set (match_oper