1 ; RUN: opt < %s -sancov -sanitizer-coverage-level=4 -sanitizer-coverage-trace-pc -sanitizer-coverage-prune-blocks=1 -S | FileCheck %s
2 ; RUN: opt < %s -passes='module(sancov-module)' -sanitizer-coverage-level=4 -sanitizer-coverage-trace-pc -sanitizer-coverage-prune-blocks=1 -S | FileCheck %s
4 define i32 @blah(i32) #0 {
5 %2 = icmp sgt i32 %0, 1
6 br i1 %2, label %branch, label %exit
7 ; CHECK: call void @__sanitizer_cov_trace_pc()
11 ; CHECK-LABEL: branch:
12 ; CHECK-NOT: call void @__sanitizer_cov_trace_pc()
17 ; CHECK-NOT: call void @__sanitizer_cov_trace_pc()
22 ; CHECK-NOT: call void @__sanitizer_cov_trace_pc()
27 ; CHECK: call void @__sanitizer_cov_trace_pc()
32 ; CHECK: call void @__sanitizer_cov_trace_pc()