CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
218 lines
8.1 KiB
C
218 lines
8.1 KiB
C
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals --include-generated-funcs --global-value-regex ".*"
|
|
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature -fmv -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK-NOFMV
|
|
|
|
int implicit_default_decl_first(void);
|
|
__attribute__((target_version("default"))) int implicit_default_decl_first(void) { return 1; }
|
|
int caller1(void) { return implicit_default_decl_first(); }
|
|
|
|
__attribute__((target_version("default"))) int explicit_default_def_first(void) { return 2; }
|
|
int explicit_default_def_first(void);
|
|
int caller2(void) { return explicit_default_def_first(); }
|
|
|
|
int implicit_default_def_first(void) { return 3; }
|
|
__attribute__((target_version("default"))) int implicit_default_def_first(void);
|
|
int caller3(void) { return implicit_default_def_first(); }
|
|
|
|
__attribute__((target_version("default"))) int explicit_default_decl_first(void);
|
|
int explicit_default_decl_first(void) { return 4; }
|
|
int caller4(void) { return explicit_default_decl_first(); }
|
|
|
|
int no_def_implicit_default_first(void);
|
|
__attribute__((target_version("default"))) int no_def_implicit_default_first(void);
|
|
int caller5(void) { return no_def_implicit_default_first(); }
|
|
|
|
__attribute__((target_version("default"))) int no_def_explicit_default_first(void);
|
|
int no_def_explicit_default_first(void);
|
|
int caller6(void) { return no_def_explicit_default_first(); }
|
|
//.
|
|
// CHECK: @implicit_default_decl_first = weak_odr ifunc i32 (), ptr @implicit_default_decl_first.resolver
|
|
// CHECK: @explicit_default_def_first = weak_odr ifunc i32 (), ptr @explicit_default_def_first.resolver
|
|
// CHECK: @implicit_default_def_first = weak_odr ifunc i32 (), ptr @implicit_default_def_first.resolver
|
|
// CHECK: @explicit_default_decl_first = weak_odr ifunc i32 (), ptr @explicit_default_decl_first.resolver
|
|
//.
|
|
// CHECK: Function Attrs: noinline nounwind optnone
|
|
// CHECK-LABEL: define {{[^@]+}}@implicit_default_decl_first.default
|
|
// CHECK-SAME: () #[[ATTR0:[0-9]+]] {
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: ret i32 1
|
|
//
|
|
//
|
|
// CHECK: Function Attrs: noinline nounwind optnone
|
|
// CHECK-LABEL: define {{[^@]+}}@caller1
|
|
// CHECK-SAME: () #[[ATTR1:[0-9]+]] {
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: [[CALL:%.*]] = call i32 @implicit_default_decl_first()
|
|
// CHECK-NEXT: ret i32 [[CALL]]
|
|
//
|
|
//
|
|
// CHECK: Function Attrs: noinline nounwind optnone
|
|
// CHECK-LABEL: define {{[^@]+}}@explicit_default_def_first.default
|
|
// CHECK-SAME: () #[[ATTR0]] {
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: ret i32 2
|
|
//
|
|
//
|
|
// CHECK: Function Attrs: noinline nounwind optnone
|
|
// CHECK-LABEL: define {{[^@]+}}@caller2
|
|
// CHECK-SAME: () #[[ATTR1]] {
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: [[CALL:%.*]] = call i32 @explicit_default_def_first()
|
|
// CHECK-NEXT: ret i32 [[CALL]]
|
|
//
|
|
//
|
|
// CHECK: Function Attrs: noinline nounwind optnone
|
|
// CHECK-LABEL: define {{[^@]+}}@implicit_default_def_first.default
|
|
// CHECK-SAME: () #[[ATTR1]] {
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: ret i32 3
|
|
//
|
|
//
|
|
// CHECK: Function Attrs: noinline nounwind optnone
|
|
// CHECK-LABEL: define {{[^@]+}}@caller3
|
|
// CHECK-SAME: () #[[ATTR1]] {
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: [[CALL:%.*]] = call i32 @implicit_default_def_first()
|
|
// CHECK-NEXT: ret i32 [[CALL]]
|
|
//
|
|
//
|
|
// CHECK: Function Attrs: noinline nounwind optnone
|
|
// CHECK-LABEL: define {{[^@]+}}@explicit_default_decl_first.default
|
|
// CHECK-SAME: () #[[ATTR0]] {
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: ret i32 4
|
|
//
|
|
//
|
|
// CHECK: Function Attrs: noinline nounwind optnone
|
|
// CHECK-LABEL: define {{[^@]+}}@caller4
|
|
// CHECK-SAME: () #[[ATTR1]] {
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: [[CALL:%.*]] = call i32 @explicit_default_decl_first()
|
|
// CHECK-NEXT: ret i32 [[CALL]]
|
|
//
|
|
//
|
|
// CHECK: Function Attrs: noinline nounwind optnone
|
|
// CHECK-LABEL: define {{[^@]+}}@caller5
|
|
// CHECK-SAME: () #[[ATTR1]] {
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: [[CALL:%.*]] = call i32 @no_def_implicit_default_first()
|
|
// CHECK-NEXT: ret i32 [[CALL]]
|
|
//
|
|
//
|
|
// CHECK: Function Attrs: noinline nounwind optnone
|
|
// CHECK-LABEL: define {{[^@]+}}@caller6
|
|
// CHECK-SAME: () #[[ATTR1]] {
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: [[CALL:%.*]] = call i32 @no_def_explicit_default_first()
|
|
// CHECK-NEXT: ret i32 [[CALL]]
|
|
//
|
|
//
|
|
// CHECK: Function Attrs: disable_sanitizer_instrumentation
|
|
// CHECK-LABEL: define {{[^@]+}}@implicit_default_decl_first.resolver
|
|
// CHECK-SAME: () #[[ATTR3:[0-9]+]] comdat {
|
|
// CHECK-NEXT: resolver_entry:
|
|
// CHECK-NEXT: ret ptr @implicit_default_decl_first.default
|
|
//
|
|
//
|
|
// CHECK: Function Attrs: disable_sanitizer_instrumentation
|
|
// CHECK-LABEL: define {{[^@]+}}@explicit_default_def_first.resolver
|
|
// CHECK-SAME: () #[[ATTR3]] comdat {
|
|
// CHECK-NEXT: resolver_entry:
|
|
// CHECK-NEXT: ret ptr @explicit_default_def_first.default
|
|
//
|
|
//
|
|
// CHECK: Function Attrs: disable_sanitizer_instrumentation
|
|
// CHECK-LABEL: define {{[^@]+}}@implicit_default_def_first.resolver
|
|
// CHECK-SAME: () #[[ATTR3]] comdat {
|
|
// CHECK-NEXT: resolver_entry:
|
|
// CHECK-NEXT: ret ptr @implicit_default_def_first.default
|
|
//
|
|
//
|
|
// CHECK: Function Attrs: disable_sanitizer_instrumentation
|
|
// CHECK-LABEL: define {{[^@]+}}@explicit_default_decl_first.resolver
|
|
// CHECK-SAME: () #[[ATTR3]] comdat {
|
|
// CHECK-NEXT: resolver_entry:
|
|
// CHECK-NEXT: ret ptr @explicit_default_decl_first.default
|
|
//
|
|
//
|
|
// CHECK-NOFMV: Function Attrs: noinline nounwind optnone
|
|
// CHECK-NOFMV-LABEL: define {{[^@]+}}@caller1
|
|
// CHECK-NOFMV-SAME: () #[[ATTR0:[0-9]+]] {
|
|
// CHECK-NOFMV-NEXT: entry:
|
|
// CHECK-NOFMV-NEXT: [[CALL:%.*]] = call i32 @implicit_default_decl_first()
|
|
// CHECK-NOFMV-NEXT: ret i32 [[CALL]]
|
|
//
|
|
//
|
|
// CHECK-NOFMV: Function Attrs: noinline nounwind optnone
|
|
// CHECK-NOFMV-LABEL: define {{[^@]+}}@implicit_default_decl_first
|
|
// CHECK-NOFMV-SAME: () #[[ATTR1:[0-9]+]] {
|
|
// CHECK-NOFMV-NEXT: entry:
|
|
// CHECK-NOFMV-NEXT: ret i32 1
|
|
//
|
|
//
|
|
// CHECK-NOFMV: Function Attrs: noinline nounwind optnone
|
|
// CHECK-NOFMV-LABEL: define {{[^@]+}}@caller2
|
|
// CHECK-NOFMV-SAME: () #[[ATTR0]] {
|
|
// CHECK-NOFMV-NEXT: entry:
|
|
// CHECK-NOFMV-NEXT: [[CALL:%.*]] = call i32 @explicit_default_def_first()
|
|
// CHECK-NOFMV-NEXT: ret i32 [[CALL]]
|
|
//
|
|
//
|
|
// CHECK-NOFMV: Function Attrs: noinline nounwind optnone
|
|
// CHECK-NOFMV-LABEL: define {{[^@]+}}@explicit_default_def_first
|
|
// CHECK-NOFMV-SAME: () #[[ATTR1]] {
|
|
// CHECK-NOFMV-NEXT: entry:
|
|
// CHECK-NOFMV-NEXT: ret i32 2
|
|
//
|
|
//
|
|
// CHECK-NOFMV: Function Attrs: noinline nounwind optnone
|
|
// CHECK-NOFMV-LABEL: define {{[^@]+}}@implicit_default_def_first
|
|
// CHECK-NOFMV-SAME: () #[[ATTR0]] {
|
|
// CHECK-NOFMV-NEXT: entry:
|
|
// CHECK-NOFMV-NEXT: ret i32 3
|
|
//
|
|
//
|
|
// CHECK-NOFMV: Function Attrs: noinline nounwind optnone
|
|
// CHECK-NOFMV-LABEL: define {{[^@]+}}@caller3
|
|
// CHECK-NOFMV-SAME: () #[[ATTR0]] {
|
|
// CHECK-NOFMV-NEXT: entry:
|
|
// CHECK-NOFMV-NEXT: [[CALL:%.*]] = call i32 @implicit_default_def_first()
|
|
// CHECK-NOFMV-NEXT: ret i32 [[CALL]]
|
|
//
|
|
//
|
|
// CHECK-NOFMV: Function Attrs: noinline nounwind optnone
|
|
// CHECK-NOFMV-LABEL: define {{[^@]+}}@caller4
|
|
// CHECK-NOFMV-SAME: () #[[ATTR0]] {
|
|
// CHECK-NOFMV-NEXT: entry:
|
|
// CHECK-NOFMV-NEXT: [[CALL:%.*]] = call i32 @explicit_default_decl_first()
|
|
// CHECK-NOFMV-NEXT: ret i32 [[CALL]]
|
|
//
|
|
//
|
|
// CHECK-NOFMV: Function Attrs: noinline nounwind optnone
|
|
// CHECK-NOFMV-LABEL: define {{[^@]+}}@explicit_default_decl_first
|
|
// CHECK-NOFMV-SAME: () #[[ATTR1]] {
|
|
// CHECK-NOFMV-NEXT: entry:
|
|
// CHECK-NOFMV-NEXT: ret i32 4
|
|
//
|
|
//
|
|
// CHECK-NOFMV: Function Attrs: noinline nounwind optnone
|
|
// CHECK-NOFMV-LABEL: define {{[^@]+}}@caller5
|
|
// CHECK-NOFMV-SAME: () #[[ATTR0]] {
|
|
// CHECK-NOFMV-NEXT: entry:
|
|
// CHECK-NOFMV-NEXT: [[CALL:%.*]] = call i32 @no_def_implicit_default_first()
|
|
// CHECK-NOFMV-NEXT: ret i32 [[CALL]]
|
|
//
|
|
//
|
|
// CHECK-NOFMV: Function Attrs: noinline nounwind optnone
|
|
// CHECK-NOFMV-LABEL: define {{[^@]+}}@caller6
|
|
// CHECK-NOFMV-SAME: () #[[ATTR0]] {
|
|
// CHECK-NOFMV-NEXT: entry:
|
|
// CHECK-NOFMV-NEXT: [[CALL:%.*]] = call i32 @no_def_explicit_default_first()
|
|
// CHECK-NOFMV-NEXT: ret i32 [[CALL]]
|
|
//
|
|
//.
|
|
// CHECK: [[META0:![0-9]+]] = !{!"{{.*}}clang version {{.*}}"}
|
|
//.
|
|
// CHECK-NOFMV: [[META0:![0-9]+]] = !{!"{{.*}}clang version {{.*}}"}
|
|
//.
|