From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dellerweb.de (unknown [IPv6:2a02:c207:3003:236::1]) by sourceware.org (Postfix) with ESMTPS id 2689C3858D1E for ; Wed, 17 May 2023 20:39:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2689C3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org Received: from mx3210.localdomain (unknown [142.181.186.176]) by dellerweb.de (Postfix) with ESMTPSA id 4FAF71600359; Wed, 17 May 2023 22:39:50 +0200 (CEST) Received: by mx3210.localdomain (Postfix, from userid 1000) id 15C2C22012C; Wed, 17 May 2023 20:39:47 +0000 (UTC) Date: Wed, 17 May 2023 20:39:47 +0000 From: John David Anglin To: GCC Patches Subject: [committed] hppa: Add clear_cache expander Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d4/Ud3Ms7tkZi2QB" Content-Disposition: inline X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --d4/Ud3Ms7tkZi2QB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tested on hppa-unknown-linux-gnu and hppa64-hp-hpux11.11. Committed to trunk. Dave --- Add clear_cache expander. 2023-05-17 John David Anglin gcc/ChangeLog: * config/pa/pa.md (clear_cache): New. diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md index 7b7d7f776c7..726e12768f8 100644 --- a/gcc/config/pa/pa.md +++ b/gcc/config/pa/pa.md @@ -9940,6 +9940,23 @@ add,l %2,%3,%3\;bv,n %%r0(%3)" [(set_attr "type" "multi") (set_attr "length" "52")]) =20 +(define_expand "clear_cache" + [(match_operand 0 "pmode_register_operand") + (match_operand 1 "pmode_register_operand")] + "" +{ + rtx line_length =3D gen_reg_rtx (Pmode); + + emit_move_insn (line_length, GEN_INT (MIN_CACHELINE_SIZE)); + if (TARGET_64BIT) + emit_insn (gen_icacheflushdi (operands[0], operands[1], line_length, + gen_reg_rtx (Pmode), gen_reg_rtx (Pmode))); + else + emit_insn (gen_icacheflushsi (operands[0], operands[1], line_length, + gen_reg_rtx (Pmode), gen_reg_rtx (Pmode))); + DONE; +}) + ;; An out-of-line prologue. (define_insn "outline_prologue_call" [(unspec_volatile [(const_int 0)] UNSPECV_OPC) --d4/Ud3Ms7tkZi2QB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEnRzl+6e9+DTrEhyEXb/Nrl8ZTfEFAmRlO40ACgkQXb/Nrl8Z TfFgCA//UvyEh5lLP1TropFQ4TR4g5DbS6xeJIImkpzqx245c51XTVIFdCYOCjFK HLcOAd5OaqYE3012V9sh+MvlqGwQWd3fSSsgUNELwGv1G3vC3YPf2QlRhodIXyM1 i+KbJoZmC+R3je+wX0B0Y/9ZFdMQIKe7WIir35uJ5SRjQunDc7KjhToLI416Ns4B G/bCfqvxgnvdaWU4T1PEPD4ag4AaPRowpljdcjVyUXRq9SBvyI8qSs+k+k7ijH6C nrFN7ybHS3HPzXbZg9S7hdZyb5H+xEKcDQljPlsWqft76+hOO5C2RBa3a9+tjGu5 S2uPsXc0Fl8fAyotd2XA5iutL9P9Hn7lWh9MBdJYatpSxPkAWi97vvMLvIVpUQ8e V5Zd4dC1gwaZJcJuRdAkRVbQ3oGYsK+jne0IZBHpjZhXqJswhDYfl09AsWVLhwR5 BjC/C+/iWZcm89thZ6XH+OEqBYWwQULY2K99AA5+0qtRRh0FWJCsRRB+RZbQ+/ez CZRHVWUDT/c2ExUzZEdIvDZSDicWT5wKUvZ1dF47x/iedQgC19nqQ5gsRT9JqSgA j+5jALAQfN/QVdmfWuqluT9VQKbdHnK92J6T0Lm9ClBBDCiKAgiPzciwFv0/0UeD 3/EJTyWzSTF7539ypCS1NdnXqW2hpIjAWW5hp2dbR3cK5fFuScI= =apPO -----END PGP SIGNATURE----- --d4/Ud3Ms7tkZi2QB--