1 // RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -o - -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb %s | FileCheck %s --check-prefixes=CHECK,LIN
2 // RUN: %clang_cc1 -triple x86_64-windows-pc -emit-llvm -o - -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb %s | FileCheck %s --check-prefixes=CHECK,WIN
4 // LIN: @[[S1_NAME:.+]].ifunc = weak_odr ifunc void (ptr), ptr @[[S1_NAME]].resolver
5 // LIN: @[[S2_NAME:.+]].ifunc = weak_odr ifunc void (ptr), ptr @[[S2_NAME]].resolver
6 // WIN: $"[[S1_NAME:.+]]" = comdat any
7 // WIN: $"[[S2_NAME:.+]]" = comdat any
16 __attribute__((cpu_dispatch(ivybridge
, generic
)))
18 // LIN: define weak_odr ptr @[[S1_NAME]].resolver
19 // WIN: define weak_odr dso_local void @"[[S1_NAME]]"(ptr
20 __attribute__((cpu_specific(generic
)))
22 // CHECK: define dso_local {{.*}}void @{{\"?}}[[S1_NAME]].S{{\"?}}
23 // CHECK: define dso_local {{.*}}void @{{\"?}}[[S1_NAME]].A{{\"?}}
24 __attribute__((cpu_specific(ivybridge
)))
34 __attribute__((cpu_specific(generic
)))
36 // CHECK: define dso_local {{.*}}void @{{\"?}}[[S2_NAME]].A{{\"?}}
37 __attribute__((cpu_dispatch(ivybridge
, generic
)))
39 // LIN: define weak_odr ptr @[[S2_NAME]].resolver
40 // WIN: define weak_odr dso_local void @"[[S2_NAME]]"(ptr
41 __attribute__((cpu_specific(ivybridge
)))
43 // CHECK: define dso_local {{.*}}void @{{\"?}}[[S2_NAME]].S{{\"?}}