xref: /llvm-project/clang/test/CodeGen/builtin-sponentry.c (revision 39db5e1ed87363a9ffea81e53520b542201b3262)
1 // RUN: %clang_cc1 -triple aarch64-windows-gnu -Oz -emit-llvm %s -o - | FileCheck %s
2 // RUN: %clang_cc1 -triple thumbv7-windows-gnu -Oz -emit-llvm %s -o - | FileCheck %s
3 
test_sponentry(void)4 void *test_sponentry(void) {
5   return __builtin_sponentry();
6 }
7 // CHECK-LABEL: define dso_local {{(arm_aapcs_vfpcc )?}}ptr @test_sponentry()
8 // CHECK: = tail call ptr @llvm.sponentry.p0()
9 // CHECK: ret ptr
10