https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106714
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by H.J. Lu <h...@gcc.gnu.org>: https://gcc.gnu.org/g:511df912133f56dbd460326b5df1e15e06204e4e commit r12-8725-g511df912133f56dbd460326b5df1e15e06204e4e Author: H.J. Lu <hjl.to...@gmail.com> 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. (cherry picked from commit aeb9b58225916bc84a0cd02c6fc77bbb92167e53)