https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122119
--- Comment #1 from Thiago Macieira <thiago at kde dot org> ---
The non-RS instruction uses __PTRDIFF_TYPE__:
#define _tile_loadd_internal(dst,base,stride) \
__asm__ volatile \
("{tileloadd\t(%0,%1,1), %%tmm"#dst"|tileloadd\t%%tmm"#dst", [%0+%1*1]}" \
:: "r" ((const void*) (base)), "r" ((__PTRDIFF_TYPE__) (stride)))
That was fixed from long by H.J. in aeb9b58225916bc84a0cd02c6fc77bbb92167e53
commit aeb9b58225916bc84a0cd02c6fc77bbb92167e53
Author: H.J. Lu <[email protected]>
Date: Thu Aug 18 14:17:33 2022 -0700
x86: Cast stride to __PTRDIFF_TYPE__ in AMX intrinsics
On 64-bit Windows, long is 32 bits and can't be used as stride in memory
operand when base is a pointer which is 64 bits. Cast stride to
__PTRDIFF_TYPE__, instead of long.
PR target/106714
* config/i386/amxtileintrin.h (_tile_loadd_internal): Cast to
__PTRDIFF_TYPE__.
(_tile_stream_loadd_internal): Likewise.
(_tile_stored_internal): Likewise.