[all-commits] [llvm/llvm-project] 5e92e8: [X86] Fix the implementation of __readcr[4, 8]/__wr...
Phoebe Wang via All-commits
all-commits at lists.llvm.org
Thu Jan 9 23:49:39 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5e92e8ca98dba21c9d8131e611f7158fe9ab3968
https://github.com/llvm/llvm-project/commit/5e92e8ca98dba21c9d8131e611f7158fe9ab3968
Author: Phoebe Wang <phoebe.wang at intel.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
M clang/lib/Headers/intrin.h
Log Message:
-----------
[X86] Fix the implementation of __readcr[4,8]/__writecr[4,8] to work in 64-bit mode (#122238)
According to MSVC, __readcr4/__writecr4 return/use `unsigned __int64`,
and are supported on both x86 and x64. While __readcr8/__writecr8 are
only supported on x64. So we use __INTPTR_TYPE__ and __int64
respectively.
Following:
https://github.com/llvm/llvm-project/commit/3cec2a17de744900401c83aedb442e2acc1f23f8
Ref.:
https://learn.microsoft.com/en-us/cpp/intrinsics/readcr3?view=msvc-170
https://learn.microsoft.com/en-us/cpp/intrinsics/readcr8?view=msvc-170
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list