diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2019-07-31 20:42:28 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2019-07-31 20:42:28 +0000 |
commit | 33703fb9f908113f93bd9af83a79eb56f5131735 (patch) | |
tree | 2efc95a5788adbccd4f2d4ad673cef4ef6b3a256 /clang/test/CodeGen/arm64-microsoft-status-reg.cpp | |
parent | 61b6b0eb1bbf711a78f7d55c7cc7f0682a9fade7 (diff) | |
download | bcm5719-llvm-33703fb9f908113f93bd9af83a79eb56f5131735.tar.gz bcm5719-llvm-33703fb9f908113f93bd9af83a79eb56f5131735.zip |
[clang][ARM] Fix msvc arm{64} builtins to use int on LP64 systems.
The `InterlockedX_{acq,nf,rel}` functions deal with 32 bits which is long on
MSVC, but int on most other systems.
This also checks that `ReadStatusRegister` and `WriteStatusRegister` have
the correct type on aarch64-darwin.
Differential Revision: https://reviews.llvm.org/D64164
llvm-svn: 367479
Diffstat (limited to 'clang/test/CodeGen/arm64-microsoft-status-reg.cpp')
-rw-r--r-- | clang/test/CodeGen/arm64-microsoft-status-reg.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/arm64-microsoft-status-reg.cpp b/clang/test/CodeGen/arm64-microsoft-status-reg.cpp index ee8439cbec0..f63265e2c4c 100644 --- a/clang/test/CodeGen/arm64-microsoft-status-reg.cpp +++ b/clang/test/CodeGen/arm64-microsoft-status-reg.cpp @@ -3,9 +3,15 @@ // RUN: %clang_cc1 -triple arm64-windows -fms-compatibility -emit-llvm -S \ // RUN: -o - %s | FileCheck %s -check-prefix CHECK-ASM +// RUN: %clang_cc1 -triple arm64-darwin -fms-compatibility -emit-llvm -S \ +// RUN: -o - %s | FileCheck %s -check-prefix CHECK-ASM + // RUN: %clang_cc1 -triple arm64-windows -fms-compatibility -emit-llvm \ // RUN: -o - %s | FileCheck %s -check-prefix CHECK-IR +// RUN: %clang_cc1 -triple arm64-darwin -fms-compatibility -emit-llvm \ +// RUN: -o - %s | FileCheck %s -check-prefix CHECK-IR + // From winnt.h #define ARM64_SYSREG(op0, op1, crn, crm, op2) \ ( ((op0 & 1) << 14) | \ |