[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / rtsan_entry_exit_insertion.c
blob9ba0103ca1e35375841fa18ab7785fea39c2710a
1 // RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -fsanitize=realtime -emit-llvm -o - %s | FileCheck %s
3 int foo(int *a) [[clang::nonblocking]] { return *a; }
5 // The first instruction after the function is entred should be a call to
6 // enable the realtime sanitizer stack.
7 // CHECK-LABEL: define{{.*}}@foo
8 // CHECK-NEXT: entry:
9 // CHECK-NEXT: call{{.*}}__rtsan_realtime_enter
11 // __rtsan_realtime_exit should be inserted at all function returns.
12 // CHECK-LABEL: call{{.*}}__rtsan_realtime_exit
13 // CHECK-NEXT: ret