Skip to content

Commit fe1ef52

Browse files
committed
fix tests concerning import section entries for functions
1 parent 797d97b commit fe1ef52

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

llvm/test/CodeGen/RISCV/cheri/cheri-local-libcall.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ attributes #1 = { minsize mustprogress nofree norecurse nosync nounwind optsize
3434
; CHECK-NEXT: .byte 0
3535
; CHECK-NEXT: .byte 8
3636
; CHECK-NEXT: .size __export_hello__Z9say_hellov, 4
37-
; CHECK-NEXT: .section .compartment_imports,"aG",@progbits,__library_import_hello__Z11id_functionv,comdat
37+
; CHECK-NEXT: .section .compartment_imports._Z11id_functionv,"aG",@progbits,__library_import_hello__Z11id_functionv,comdat
3838
; CHECK-NEXT: .type __library_import_hello__Z11id_functionv,@object
3939
; CHECK-NEXT: .weak __library_import_hello__Z11id_functionv
4040
; CHECK-NEXT: .p2align 3, 0x0
4141
; CHECK-NEXT:__library_import_hello__Z11id_functionv:
4242
; CHECK-NEXT: .word __library_export_hello__Z11id_functionv+1
4343
; CHECK-NEXT: .word 0
44-
; CHECK-NEXT: .size __library_import_hello__Z11id_functionv, 8
44+
; CHECK-NEXT: .size __library_import_hello__Z11id_functionv, 8

llvm/test/CodeGen/RISCV/cheri/cheri-mcu-ccall.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ attributes #6 = { minsize nounwind optsize }
157157
; CHECK: .byte 0
158158
; CHECK: .byte 7
159159
; CHECK: .size __export_example_test8, 4
160-
; CHECK: .section .compartment_imports,"aG",@progbits,__import_other_test8callee,comdat
160+
; CHECK: .section .compartment_imports.test8callee,"aG",@progbits,__import_other_test8callee,comdat
161161
; CHECK: .type __import_other_test8callee,@object
162162
; CHECK: .weak __import_other_test8callee
163163
; CHECK: .p2align 3

llvm/test/CodeGen/RISCV/cheri/cheri-mcu-ccallback.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ entry:
6666
}
6767

6868
; Make sure that the import and export table entries are local for the internal function.
69-
; CHECK: .section .compartment_imports,"a",@progbits
69+
; CHECK: .section .compartment_imports.cb,"a",@progbits
7070
; CHECK-NOT: comdat
7171
; CHECK-NOT: .globl __import_comp_cb
7272
; CHECK: __import_comp_cb:
7373
; CHECK-NOT: comdat
7474
; CHECK-NOT: .globl __export_comp_cb
7575
; CHECK-NOT: .globl __export_comp_ecb
7676
; Make sure that the import table entry a COMDAT for the external function
77-
; CHECK: .section .compartment_imports,"aG",@progbits,__import_comp_ecb,comdat
77+
; CHECK: .section .compartment_imports.ecb,"aG",@progbits,__import_comp_ecb,comdat
7878
; CHECK: .type __import_comp_ecb,@object
7979
; CHECK: .weak __import_comp_ecb
8080
; CHECK: .p2align 3

0 commit comments

Comments
 (0)