Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / mcount-aix.c
blob6f5d9b3322e9b6df6459a50f184158104222152b
1 // RUN: %clang_cc1 -pg -triple powerpc-ibm-aix7.2.0.0 -S -emit-llvm %s -o - | FileCheck %s
2 // RUN: %clang_cc1 -pg -triple powerpc64-ibm-aix7.2.0.0 -S -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK64
4 void foo() {
7 void bar() {
8 foo();
10 // CHECK: @[[GLOB0:[0-9]+]] = internal global i32 0
11 // CHECK: @[[GLOB1:[0-9]+]] = internal global i32 0
12 // CHECK64: @[[GLOB0:[0-9]+]] = internal global i64 0
13 // CHECK64: @[[GLOB1:[0-9]+]] = internal global i64 0
14 // CHECK-LABEL: @foo(
15 // CHECK-NEXT: entry:
16 // CHECK-NEXT: call void @__mcount(ptr @[[GLOB0]])
17 // CHECK64-LABEL: @foo(
18 // CHECK64-NEXT: entry:
19 // CHECK64-NEXT: call void @__mcount(ptr @[[GLOB0]])
20 // CHECK-LABEL: @bar(
21 // CHECK-NEXT: entry:
22 // CHECK-NEXT: call void @__mcount(ptr @[[GLOB1]])
23 // CHECK64-LABEL: @bar(
24 // CHECK64-NEXT: entry:
25 // CHECK64-NEXT: call void @__mcount(ptr @[[GLOB1]])