summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-04-13 17:08:55 +0000
committerTim Northover <tnorthover@apple.com>2016-04-13 17:08:55 +0000
commit54e5000e2ac6dad6a9dab59bfd681b89722e4f0f (patch)
tree9b5b95faeb238c5d6f0616f964f3fc9fc2703ab8 /clang/lib
parent99694feca5aea5e7e7e8d9edfbf858c2a63d5e69 (diff)
downloadbcm5719-llvm-54e5000e2ac6dad6a9dab59bfd681b89722e4f0f.tar.gz
bcm5719-llvm-54e5000e2ac6dad6a9dab59bfd681b89722e4f0f.zip
AArch64: allow 64-bit access to sysregs.
Although all the registers are actually 32-bits, I think we have to assume the high 32-bits could be RES0 (the ARM ARM is unclear). If so, reading as a 32-bit register can require extra zero extension operations. llvm-svn: 266212
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index ee39401d48a..6047030129a 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -1155,7 +1155,7 @@ bool Sema::CheckAArch64BuiltinFunctionCall(unsigned BuiltinID,
if (BuiltinID == AArch64::BI__builtin_arm_rsr64 ||
BuiltinID == AArch64::BI__builtin_arm_wsr64)
- return SemaBuiltinARMSpecialReg(BuiltinID, TheCall, 0, 5, false);
+ return SemaBuiltinARMSpecialReg(BuiltinID, TheCall, 0, 5, true);
if (BuiltinID == AArch64::BI__builtin_arm_rsr ||
BuiltinID == AArch64::BI__builtin_arm_rsrp ||
OpenPOWER on IntegriCloud