public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-11005] i386: Handle CONST_WIDE_INT in output_pic_addr_const [PR111340]
@ 2023-09-12 21:11 Uros Bizjak
0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2023-09-12 21:11 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:513bfd3271e7b425e91b0a55f72c134d917e9c12
commit r11-11005-g513bfd3271e7b425e91b0a55f72c134d917e9c12
Author: Uros Bizjak <ubizjak@gmail.com>
Date: Mon Sep 11 20:56:42 2023 +0200
i386: Handle CONST_WIDE_INT in output_pic_addr_const [PR111340]
PR target/111340
gcc/ChangeLog:
* config/i386/i386.c (output_pic_addr_const): Handle CONST_WIDE_INT.
Call output_addr_const for CASE_CONST_SCALAR_INT.
gcc/testsuite/ChangeLog:
* gcc.target/i386/pr111340.c: New test.
(cherry picked from commit 048927ed8561ca994ad853fe85ccf8c2ca07a8fe)
Diff:
---
gcc/config/i386/i386.c | 4 ++--
gcc/testsuite/gcc.target/i386/pr111340.c | 9 +++++++++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 6c9c99ee50b3..e9fcb0a16a67 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -11978,8 +11978,8 @@ output_pic_addr_const (FILE *file, rtx x, int code)
assemble_name (asm_out_file, buf);
break;
- case CONST_INT:
- fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x));
+ CASE_CONST_SCALAR_INT:
+ output_addr_const (file, x);
break;
case CONST:
diff --git a/gcc/testsuite/gcc.target/i386/pr111340.c b/gcc/testsuite/gcc.target/i386/pr111340.c
new file mode 100644
index 000000000000..6539ae566c03
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/pr111340.c
@@ -0,0 +1,9 @@
+/* PR target/111340 */
+/* { dg-do compile { target { fpic && int128 } } } */
+/* { dg-options "-O2 -fpic" } */
+
+void
+bar (void)
+{
+ __asm ("# %0" : : "g" ((((unsigned __int128) 0x123456789abcdef0ULL) << 64) | 0x0fedcba987654321ULL));
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-12 21:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-12 21:11 [gcc r11-11005] i386: Handle CONST_WIDE_INT in output_pic_addr_const [PR111340] Uros Bizjak
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).