Re: [PATCH] Use MEM_EXPR only if MEM_P is true

2025-06-04 Thread Stefan Schulze Frielinghaus
On Wed, Jun 04, 2025 at 09:12:58AM +0100, Richard Sandiford wrote: > Richard Biener writes: > > On Wed, Jun 4, 2025 at 7:28 AM H.J. Lu wrote: > >> > >> On s390x, for input: > >> > >> (call_insn/u 7 6 11 2 (parallel [ > >> (set (reg:SI 2 %r2) > >> (call (subreg:QI (symb

Re: [PATCH] Use MEM_EXPR only if MEM_P is true

2025-06-04 Thread Stefan Schulze Frielinghaus
On Wed, Jun 04, 2025 at 05:07:13PM +0200, Jakub Jelinek wrote: > On Wed, Jun 04, 2025 at 05:02:45PM +0200, Stefan Schulze Frielinghaus wrote: > > Building a subreg in case of > > > > else if (GET_CODE (x) == CONST) > > { > > /* Extract the symbol ref from: > > (mem:QI (const:DI

Re: [PATCH] Use MEM_EXPR only if MEM_P is true

2025-06-04 Thread Jakub Jelinek
On Wed, Jun 04, 2025 at 05:02:45PM +0200, Stefan Schulze Frielinghaus wrote: > Building a subreg in case of > > else if (GET_CODE (x) == CONST) > { > /* Extract the symbol ref from: > (mem:QI (const:DI (unspec:DI [(symbol_ref:DI ("foo"))] >

Re: [PATCH] Use MEM_EXPR only if MEM_P is true

2025-06-04 Thread Richard Biener
On Wed, Jun 4, 2025 at 7:28 AM H.J. Lu wrote: > > On s390x, for input: > > (call_insn/u 7 6 11 2 (parallel [ > (set (reg:SI 2 %r2) > (call (subreg:QI (symbol_ref:SI ("__tls_get_offset") > [flags 0x1]) 3) > (const_int 0 [0]))) > (clobber (

Re: [PATCH] Use MEM_EXPR only if MEM_P is true

2025-06-04 Thread Richard Sandiford
Richard Biener writes: > On Wed, Jun 4, 2025 at 7:28 AM H.J. Lu wrote: >> >> On s390x, for input: >> >> (call_insn/u 7 6 11 2 (parallel [ >> (set (reg:SI 2 %r2) >> (call (subreg:QI (symbol_ref:SI ("__tls_get_offset") >> [flags 0x1]) 3) >> (const_int

[PATCH] Use MEM_EXPR only if MEM_P is true

2025-06-03 Thread H.J. Lu
debug/120525 * var-tracking.cc (prepare_call_arguments): Use MEM_EXPR only if MEM_P is true. gcc/testsuite/ PR debug/120525 * gcc.dg/pr120525.c: New test. -- H.J. From 84a2ad50d87a4eb9e2f2cd47ae0c55d08701536b Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 4 Jun 2025 08:48:40 +0800 Sub