[all-commits] [llvm/llvm-project] 4ae87b: Fix types of arm64 MSVC __readx18/__writex18 intri...
Akira Hatanaka via All-commits
all-commits at lists.llvm.org
Tue Jul 18 18:16:52 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4ae87b3f8adc35faa3769f2929e51940dd397803
https://github.com/llvm/llvm-project/commit/4ae87b3f8adc35faa3769f2929e51940dd397803
Author: Akira Hatanaka <ahatanaka at apple.com>
Date: 2023-07-18 (Tue, 18 Jul 2023)
Changed paths:
M clang/include/clang/Basic/BuiltinsAArch64.def
M clang/test/CodeGen/arm64-microsoft-intrinsics.c
Log Message:
-----------
Fix types of arm64 MSVC __readx18/__writex18 intrinsics
Using `L` for type `long` results in clang passing 64-bit integers to
these intrinsics on LP64 operating systems. This isn't correct as the
intrinsics accept 32-bit integers.
Use `N` instead of `L` so that 32-bit integers are passed to the
intrinsics on LP64 operating systems too. This is the same fix as the
following two commits:
33703fb9f908113f93bd9af83a79eb56f5131735
afa47c91ce5085d446ebb5ac1312dc98b6a68a6c
Differential Revision: https://reviews.llvm.org/D155012
More information about the All-commits
mailing list