Skip to content

Commit 345658e

Browse files
committed
Move tests to compiler-rt
1 parent 738a548 commit 345658e

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

compiler-rt/test/profile/Linux/instrprof-debug-info-correlate-warnings.c

Lines changed: 0 additions & 13 deletions
This file was deleted.

llvm/test/tools/llvm-profdata/debug-info-correlate-warnings.ll renamed to compiler-rt/test/profile/Linux/instrprof-debug-info-correlate-warnings.ll

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
; RUN: split-file %s %t
2-
; RUN: clang --target=x86_64-linux %t/a.ll -o %t/a.out
3-
; RUN: llvm-profdata merge --debug-info=%t/a.out %t/a.proftext -o %t/a.profdata 2>&1 | FileCheck %s --implicit-check-not=warning
2+
; RUN: %clang %t/a.ll -o %t/a.out
3+
; RUN: llvm-profdata merge --debug-info=%t/a.out %t/a.proftext --max-debug-info-correlation-warnings=2 -o %t/a.profdata 2>&1 | FileCheck %s --implicit-check-not=warning --check-prefixes=CHECK,LIMIT
4+
; RUN: llvm-profdata merge --debug-info=%t/a.out %t/a.proftext --max-debug-info-correlation-warnings=0 -o %t/a.profdata 2>&1 | FileCheck %s --implicit-check-not=warning --check-prefixes=CHECK,NOLIMIT
45

56
; CHECK: warning: Incomplete DIE for function None:
67
; CHECK: warning: Incomplete DIE for function no_cfg: CFGHash=None
7-
; CHECK: warning: Incomplete DIE for function no_counter: {{.*}} NumCounters=None
8-
; CHECK: warning: Incomplete DIE for function no_profc: {{.*}} CounterPtr=None
9-
; CHECK: warning: Could not find address of function no_func
8+
; NOLIMIT: warning: Incomplete DIE for function no_counter: {{.*}} NumCounters=None
9+
; NOLIMIT: warning: Incomplete DIE for function no_profc: {{.*}} CounterPtr=None
10+
; NOLIMIT: warning: Could not find address of function no_func
11+
; LIMIT: warning: Suppressed 3 additional warnings
1012

1113
;--- a.proftext
1214
:ir
@@ -29,13 +31,13 @@ void no_func() {}
2931
// 5. Remove "@__profc_no_profc"
3032
// 6. Remove "@no_func"
3133
;--- gen
32-
clang --target=x86_64-linux -fprofile-generate -mllvm -debug-info-correlate -S -emit-llvm -g a.c -o -
34+
clang --target=x86_64-unknown-linux-gnu -fprofile-generate -mllvm -debug-info-correlate -S -emit-llvm -g a.c -o -
3335

3436
;--- a.ll
3537
; ModuleID = 'a.c'
3638
source_filename = "a.c"
3739
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
38-
target triple = "x86_64-unknown-linux"
40+
target triple = "x86_64-unknown-linux-gnu"
3941

4042
$__llvm_profile_raw_version = comdat any
4143

0 commit comments

Comments
 (0)