File tree Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 1
1
; Currently we do not define __{init,fini}_array_end as named aliases.
2
- ; RUN: opt < %s -nacl-expand-ctors -S | not grep __init_array_end
3
- ; RUN: opt < %s -nacl-expand-ctors -S | not grep __fini_array_end
2
+ ; RUN: opt < %s -nacl-expand-ctors -S | FileCheck %s -check-prefix=NO_CTORS
3
+ ; NO_CTORS-NOT: __init_array_end
4
+ ; NO_CTORS-NOT: __fini_array_end
4
5
5
6
; RUN: opt < %s -nacl-expand-ctors -S | FileCheck %s
6
7
Original file line number Diff line number Diff line change 1
1
; Currently we do not define __{init,fini}_array_end as named aliases.
2
- ; RUN: opt < %s -nacl-expand-ctors -S | not grep __init_array_end
3
- ; RUN: opt < %s -nacl-expand-ctors -S | not grep __fini_array_end
2
+ ; RUN: opt < %s -nacl-expand-ctors -S | FileCheck %s -check-prefix=NO_CTORS
3
+ ; NO_CTORS-NOT: __init_array_end
4
+ ; NO_CTORS-NOT: __fini_array_end
4
5
5
6
; We expect this symbol to be removed:
6
7
; RUN: opt < %s -nacl-expand-ctors -S | not grep llvm.global_ctors
Original file line number Diff line number Diff line change 1
1
; We expect these symbol names to be removed:
2
- ; RUN: opt < %s -nacl-expand-ctors -S | not grep llvm.global_ctors
3
- ; RUN: opt < %s -nacl-expand-ctors -S | not grep __init_array_end
4
- ; RUN: opt < %s -nacl-expand-ctors -S | not grep __fini_array_end
2
+ ; RUN: opt < %s -nacl-expand-ctors -S | FileCheck %s -check-prefix=NO_CTORS
3
+ ; NO_CTORS-NOT: llvm.global.ctors
4
+ ; NO_CTORS-NOT: __init_array_end
5
+ ; NO_CTORS-NOT: __fini_array_end
5
6
6
7
; RUN: opt < %s -nacl-expand-ctors -S | FileCheck %s
7
8
Original file line number Diff line number Diff line change 1
1
; RUN: opt < %s -nacl-expand-tls -S | FileCheck %s
2
2
3
3
; All thread-local variables should be removed
4
- ; RUN: opt < %s -nacl-expand-tls -S | not grep thread_local
4
+ ; RUN: opt < %s -nacl-expand-tls -S | FileCheck %s -check-prefix=NO_TLS
5
5
6
+ ; NO_TLS-NOT: thread_local
6
7
7
8
@tvar1 = thread_local global i64 123
8
9
@tvar2 = thread_local global i32 456
@@ -73,7 +74,7 @@ define i32 @test_get_tp_tls_offset(i32 %tls_size) {
73
74
; Uses of the intrinsic are replaced with uses of a regular function.
74
75
; CHECK: define i32 @test_get_tp_tls_offset
75
76
; CHECK: call i32 @nacl_tp_tls_offset
76
- ; RUN: opt < %s -nacl-expand-tls -S | not grep llvm.nacl.tp.tls.offset
77
+ ; NO_TLS-NOT: llvm.nacl.tp.tls.offset
77
78
78
79
define i32 @test_get_tp_tdb_offset (i32 %tdb_size ) {
79
80
%offset = call i32 @llvm.nacl.tp.tdb.offset (i32 %tdb_size )
@@ -82,4 +83,4 @@ define i32 @test_get_tp_tdb_offset(i32 %tdb_size) {
82
83
; Uses of the intrinsic are replaced with uses of a regular function.
83
84
; CHECK: define i32 @test_get_tp_tdb_offset
84
85
; CHECK: call i32 @nacl_tp_tdb_offset
85
- ; RUN: opt < %s -nacl-expand-tls -S | not grep llvm.nacl.tp.tdb.offset
86
+ ; NO_TLS-NOT: llvm.nacl.tp.tdb.offset
You can’t perform that action at this time.
0 commit comments