clang/test/CodeGen/builtin-sponentry.c
raw| 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 | |
| 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 |