Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / Instrumentation / SanitizerCoverage / cmp-tracing-api-x86_32.ll
blob6ade3e32bd279169fa79c068e3117d3ff9f770c2
1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
2 ; REQUIRES: x86-registered-target
3 ; Test -sanitizer-coverage-trace-compares=1 API declarations on a non-x86_64 arch
4 ; RUN: opt < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-trace-compares=1  -S | FileCheck %s
6 target triple = "i386-unknown-linux-gnu"
7 define i32 @foo() #0 {
8 ; CHECK-LABEL: define i32 @foo() comdat {
9 ; CHECK-NEXT:  entry:
10 ; CHECK-NEXT:    call void @__sanitizer_cov_trace_pc_guard(ptr inttoptr (i32 ptrtoint (ptr @__sancov_gen_ to i32) to ptr)) #[[ATTR1:[0-9]+]]
11 ; CHECK-NEXT:    ret i32 0
13 entry:
14   ret i32 0
17 ; CHECK-DAG: declare void @__sanitizer_cov_trace_pc_indir(i32)
18 ; CHECK-DAG: declare void @__sanitizer_cov_trace_cmp1(i8 zeroext, i8 zeroext)
19 ; CHECK-DAG: declare void @__sanitizer_cov_trace_cmp2(i16 zeroext, i16 zeroext)
20 ; CHECK-DAG: declare void @__sanitizer_cov_trace_cmp4(i32 zeroext, i32 zeroext)
21 ; CHECK-DAG: declare void @__sanitizer_cov_trace_cmp8(i64, i64)
22 ; CHECK-DAG: declare void @__sanitizer_cov_trace_const_cmp1(i8 zeroext, i8 zeroext)
23 ; CHECK-DAG: declare void @__sanitizer_cov_trace_const_cmp2(i16 zeroext, i16 zeroext)
24 ; CHECK-DAG: declare void @__sanitizer_cov_trace_const_cmp4(i32 zeroext, i32 zeroext)
25 ; CHECK-DAG: declare void @__sanitizer_cov_trace_const_cmp8(i64, i64)
26 ; CHECK-DAG: declare void @__sanitizer_cov_trace_div4(i32 zeroext)
27 ; CHECK-DAG: declare void @__sanitizer_cov_trace_div8(i64)
28 ; CHECK-DAG: declare void @__sanitizer_cov_trace_gep(i32)
29 ; CHECK-DAG: declare void @__sanitizer_cov_trace_switch(i64, ptr)
30 ; CHECK-DAG: declare void @__sanitizer_cov_trace_pc()
31 ; CHECK-DAG: declare void @__sanitizer_cov_trace_pc_guard(ptr)
32 ; CHECK-DAG: declare void @__sanitizer_cov_trace_pc_guard_init(ptr, ptr)
33 ; CHECK-NOT: declare