diff options
Diffstat (limited to 'test/CodeGen/builtin-sponentry.c')
-rw-r--r-- | test/CodeGen/builtin-sponentry.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/builtin-sponentry.c b/test/CodeGen/builtin-sponentry.c new file mode 100644 index 0000000000..0a85089106 --- /dev/null +++ b/test/CodeGen/builtin-sponentry.c @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -triple aarch64-windows-gnu -Oz -emit-llvm %s -o - | FileCheck %s + +void *test_sponentry() { + return __builtin_sponentry(); +} +// CHECK-LABEL: define dso_local i8* @test_sponentry() +// CHECK: = tail call i8* @llvm.sponentry() +// CHECK: ret i8* |