Hi FX,

> On 1 Dec 2023, at 13:55, FX Coudert <fxcoud...@gmail.com> wrote:
> 
> That commit makes gcc.target/i386/libcall-1.c on darwin:
> 
> FAIL: gcc.target/i386/libcall-1.c scan-assembler globl\t__divti3
> 
> because the pattern is not found, the only mention of divti3 in the generated 
> assembly is:
> 
> LCFI0:
>        movabsq $_b@GOTOFF, %rdx
>        movabsq $___divti3@PLTOFF, %rax
>        leaq    L2(%rip), %r15
>        pushq   %rbx
> 
> 
> The source code is:
> 
> ---
> /* Make sure that external refences for libcalls are generated even for
>   indirect calls.  */
> 
> /* { dg-do compile { target int128 } } */
> /* { dg-options "-O2 -mcmodel=large" } */

mcmodel=large s not supported (yet) on any Darwin arch [PR90698], so the test 
needs skipping or xfailing, I think (either way with a reference to the PR).

Iain

> /* { dg-final { scan-assembler "globl\t__divti3" } } */
> 
> __int128 a, b; void foo () { a = a / b; }
> ---
> 
> Looking at, for example, gcc.target/i386/falign-functions-3.c it seems that 
> test avoids scanning for global references on darwin. Probably the new test 
> needs the same exception.
> 
> FX

Reply via email to