2016-03-17 02:00:46 +08:00
|
|
|
// 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
|
|
|
|
|
2017-09-27 03:26:01 +08:00
|
|
|
// 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
|
2018-03-21 01:33:26 +08:00
|
|
|
// RUN: %clang_cc1 -triple thumbv7-unknown-windows-msvc -emit-llvm %s -o - | FileCheck %s
|
2017-09-27 03:26:01 +08:00
|
|
|
|
2016-03-17 02:00:46 +08:00
|
|
|
// 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.
|
|
|
|
void foo() __attribute__((preserve_most)) {
|
2018-02-24 03:30:48 +08:00
|
|
|
// CHECK-LABEL: define {{(dso_local )?}}preserve_mostcc void @foo()
|
2016-03-17 02:00:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
void boo() __attribute__((preserve_all)) {
|
2018-02-24 03:30:48 +08:00
|
|
|
// CHECK-LABEL: define {{(dso_local )?}}preserve_allcc void @boo()
|
2016-03-17 02:00:46 +08:00
|
|
|
}
|
|
|
|
|