[ARM] Adjust how NEON shifts are lowered
[llvm-core.git] / test / Instrumentation / SanitizerCoverage / cmp-tracing.ll
blobc599806454d82dcb0f5f4c6cfd4475173388cea9
1 ; Test -sanitizer-coverage-trace-compares=1
2 ; RUN: opt < %s -sancov -sanitizer-coverage-level=1 -sanitizer-coverage-trace-compares=1  -S | FileCheck %s
3 ; RUN: opt < %s -passes='module(sancov-module),function(sancov-func)' -sanitizer-coverage-level=1 -sanitizer-coverage-trace-compares=1  -S | FileCheck %s
5 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
6 target triple = "x86_64-unknown-linux-gnu"
7 define i32 @foo(i32 %a, i32 %b) #0 {
8 entry:
9   %cmp = icmp slt i32 %a, %b
10 ; CHECK: call void @__sanitizer_cov_trace_cmp4
11 ; CHECK-NEXT: icmp slt i32 %a, %b
12   %conv = zext i1 %cmp to i32
13   ret i32 %conv