diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-09-26 19:26:01 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-09-26 19:26:01 +0000 |
commit | 4d321336d020189659a0d665dcd0b8f444e7be5c (patch) | |
tree | a4e7834bf4631283efb8219e0a77befe6bb5d3be /clang/test/CodeGen/preserve-call-conv.c | |
parent | 99eda60b49e6c483f8548eb69709d8b5a7bed7b8 (diff) | |
download | bcm5719-llvm-4d321336d020189659a0d665dcd0b8f444e7be5c.tar.gz bcm5719-llvm-4d321336d020189659a0d665dcd0b8f444e7be5c.zip |
Basic: support Preserve{Most,All} CC on Windows
Add support for the `preserve_mostcc` and `preserve_allcc` on Windows
x86_64 and AArch64. This is used by Swift.
llvm-svn: 314236
Diffstat (limited to 'clang/test/CodeGen/preserve-call-conv.c')
-rw-r--r-- | clang/test/CodeGen/preserve-call-conv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGen/preserve-call-conv.c b/clang/test/CodeGen/preserve-call-conv.c index 6e91a8489b4..b67e29f392a 100644 --- a/clang/test/CodeGen/preserve-call-conv.c +++ b/clang/test/CodeGen/preserve-call-conv.c @@ -1,6 +1,9 @@ // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm < %s | FileCheck %s // RUN: %clang_cc1 -triple arm64-unknown-unknown -emit-llvm < %s | FileCheck %s +// RUN: %clang_cc1 -triple x86_64-unknown-windows-msvc -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -triple aarch64-unknown-windows-msvc -emit-llvm %s -o - | FileCheck %s + // Check that the preserve_most calling convention attribute at the source level // is lowered to the corresponding calling convention attrribute at the LLVM IR // level. |