i386: Handle CONST_WIDE_INT in output_pic_addr_const [PR111340]
PR target/111340 gcc/ChangeLog: * config/i386/i386.cc (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.
This commit is contained in:
parent
316d57da5b
commit
048927ed85
2 changed files with 11 additions and 2 deletions
|
@ -12344,8 +12344,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:
|
||||
|
|
9
gcc/testsuite/gcc.target/i386/pr111340.c
Normal file
9
gcc/testsuite/gcc.target/i386/pr111340.c
Normal file
|
@ -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));
|
||||
}
|
Loading…
Add table
Reference in a new issue