[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / wrapv-lshr-sanitize.c
blobc09dab7cf7b5fcaaf05dda223da576d4ed08c689
1 // RUN: %clang_cc1 -fsanitize=shift-base -emit-llvm %s -o - -triple x86_64-linux-gnu -fwrapv | FileCheck %s
3 // CHECK-LABEL: @lsh_overflow
4 int lsh_overflow(int a, int b) {
5 // CHECK-NOT: br
6 // CHECK-NOT: call void @__ubsan_
7 // CHECK-NOT: call void @llvm.trap
9 // CHECK: %[[RET:.*]] = shl i32
10 // CHECK-NEXT: ret i32 %[[RET]]
11 return a << b;