File tree 1 file changed +19
-7
lines changed
llvm/test/Instrumentation/RealtimeSanitizer
1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change
1
+ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals all --version 5
1
2
; RUN: opt < %s -passes=rtsan -S | FileCheck %s
2
3
4
+ ; RealtimeSanitizer pass should create the demangled function name as a global string and,
5
+ ; at the function entrypoint, pass it as an argument to the rtsan notify method
6
+
7
+ ;.
8
+ ; CHECK: @[[GLOB0:[0-9]+]] = private unnamed_addr constant [20 x i8] c"blocking_function()\00", align 1
9
+ ;.
3
10
define void @_Z17blocking_functionv () #0 {
11
+ ; CHECK-LABEL: define void @_Z17blocking_functionv(
12
+ ; CHECK-SAME: ) #[[ATTR0:[0-9]+]] {
13
+ ; CHECK-NEXT: call void @__rtsan_notify_blocking_call(ptr @[[GLOB0]])
14
+ ; CHECK-NEXT: ret void
15
+ ;
4
16
ret void
5
17
}
6
18
7
19
define noundef i32 @main () #2 {
20
+ ; CHECK-LABEL: define noundef i32 @main() {
21
+ ; CHECK-NEXT: call void @_Z17blocking_functionv()
22
+ ; CHECK-NEXT: ret i32 0
23
+ ;
8
24
call void @_Z17blocking_functionv () #4
9
25
ret i32 0
10
26
}
11
27
12
28
attributes #0 = { mustprogress noinline sanitize_realtime_unsafe optnone ssp uwtable (sync) }
13
-
14
- ; RealtimeSanitizer pass should create the demangled function name as a global string and,
15
- ; at the function entrypoint, pass it as an argument to the rtsan notify method
16
- ; CHECK: [[GLOBAL_STR:@[a-zA-Z0-9\.]+]]
17
- ; CHECK-SAME: c"blocking_function()\00"
18
- ; CHECK-LABEL: @_Z17blocking_functionv()
19
- ; CHECK-NEXT: call{{.*}}@__rtsan_notify_blocking_call(ptr{{.*}}[[GLOBAL_STR]])
29
+ ;.
30
+ ; CHECK: attributes #[[ATTR0]] = { mustprogress noinline optnone sanitize_realtime_unsafe ssp uwtable(sync) }
31
+ ;.
You can’t perform that action at this time.
0 commit comments