[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / llvm / test / Instrumentation / SanitizerCoverage / cmp-tracing-api-x86_32.ll
blobe57ff078a5274f7295adad09a2b86b688b13f35f
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 @__sancov_gen_) #[[ATTR1:[0-9]+]]
11 ; CHECK-NEXT:    ret i32 0
13 entry:
14   ret i32 0
17 ; UTC_ARGS: --disable
18 ; CHECK-DAG: declare void @__sanitizer_cov_trace_pc_indir(i32)
19 ; CHECK-DAG: declare void @__sanitizer_cov_trace_cmp1(i8 zeroext, i8 zeroext)
20 ; CHECK-DAG: declare void @__sanitizer_cov_trace_cmp2(i16 zeroext, i16 zeroext)
21 ; CHECK-DAG: declare void @__sanitizer_cov_trace_cmp4(i32 zeroext, i32 zeroext)
22 ; CHECK-DAG: declare void @__sanitizer_cov_trace_cmp8(i64, i64)
23 ; CHECK-DAG: declare void @__sanitizer_cov_trace_const_cmp1(i8 zeroext, i8 zeroext)
24 ; CHECK-DAG: declare void @__sanitizer_cov_trace_const_cmp2(i16 zeroext, i16 zeroext)
25 ; CHECK-DAG: declare void @__sanitizer_cov_trace_const_cmp4(i32 zeroext, i32 zeroext)
26 ; CHECK-DAG: declare void @__sanitizer_cov_trace_const_cmp8(i64, i64)
27 ; CHECK-DAG: declare void @__sanitizer_cov_trace_div4(i32 zeroext)
28 ; CHECK-DAG: declare void @__sanitizer_cov_trace_div8(i64)
29 ; CHECK-DAG: declare void @__sanitizer_cov_trace_gep(i32)
30 ; CHECK-DAG: declare void @__sanitizer_cov_trace_switch(i64, ptr)
31 ; CHECK-DAG: declare void @__sanitizer_cov_trace_pc()
32 ; CHECK-DAG: declare void @__sanitizer_cov_trace_pc_guard(ptr)
33 ; CHECK-DAG: declare void @__sanitizer_cov_trace_pc_guard_init(ptr, ptr)
34 ; CHECK-NOT: declare