Skip to content

Commit a06cb9d

Browse files
committed
Expand test to weak symbols.
1 parent 6408bd7 commit a06cb9d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

llvm/test/CodeGen/X86/basic-block-sections-code-prefetch.ll

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
; RUN: echo 't 1@0' >> %t
88
; RUN: echo 't 1@1' >> %t
99
; RUN: echo 't 2@1' >> %t
10+
; RUN: echo 'f _Z3barv' >> %t
11+
; RUN: echo 't 0@0' >> %t
12+
; RUN: echo 't 21@1' >> %t
1013
;;
1114
; RUN: llc < %s -mtriple=x86_64-pc-linux -asm-verbose=false -function-sections -basic-block-sections=%t | FileCheck %s
1215

@@ -47,5 +50,12 @@ define i32 @_Z3foob(i1 zeroext %0) nounwind {
4750
ret i32 %14
4851
}
4952

50-
declare i32 @_Z3barv() #1
53+
define weak i32 @_Z3barv() nounwind {
54+
%1 = call i32 @_Z3bazv()
55+
ret i32 %1
56+
; CHECK: _Z3barv:
57+
; CHECK-NEXT: .weak __llvm_prefetch_target__Z3barv_0_0
58+
; CHECK-NEXT: __llvm_prefetch_target__Z3barv_0_0:
59+
}
60+
5161
declare i32 @_Z3bazv() #1

0 commit comments

Comments
 (0)