blob: 39bb1e122f939eae1051f4ad1754a2f5382c062d [file] [edit]
// REQUIRES: systemz-registered-target
// RUN: %clang_cc1 -emit-llvm -o- -triple s390x-ibm-zos %s |FileCheck %s
// RUN: %clang_cc1 -emit-llvm -o- -triple s390x-ibm-zos -mno-zos-ppa1-name %s |FileCheck --check-prefix=NONAME %s
void foo() {
}
void bar() asm("OtherName");
void bar() {
}
// CHECK:define void @_Z3foov() #[[a1:[0-9]+]]
// CHECK:define void @OtherName() #[[a2:[0-9]+]]
// CHECK-NOT:attributes #[[a1]] = {{{.*}}"zos-ppa1-name"{{.*}}}
// CHECK: attributes #[[a2]] = {{{.*}}"zos-ppa1-name"="_Z3barv"{{.*}}}
// NONAME:define void @_Z3foov() #[[a1:[0-9]+]]
// NONAME:define void @OtherName() #[[a1]]
// NONAME:attributes #[[a1]] = {{{.*}}"zos-ppa1-name"{{.*}}}