Skip to content

Commit

Permalink
[gold] Fix tests after #76553 (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Jan 2, 2024
1 parent 4c2ad82 commit 5c458ed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ target triple = "x86_64-grtev4-linux-gnu"
;; Prevent the vtables from being dead code eliminated.
@llvm.used = appending global [3 x ptr] [ ptr @_ZTV1B, ptr @_ZTV1C, ptr @_ZTV1D]

; CHECK-IR-LABEL: define dso_local i32 @_start
; CHECK-IR-LABEL: define dso_local {{(noundef )?}}i32 @_start
define i32 @_start(ptr %obj, ptr %obj2, i32 %a) {
entry:
%vtable = load ptr, ptr %obj
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/gold/X86/devirt_vcall_vis_public.ll
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ target triple = "x86_64-grtev4-linux-gnu"
; Prevent the vtables from being dead code eliminated.
@llvm.used = appending global [3 x ptr] [ ptr @_ZTV1B, ptr @_ZTV1C, ptr @_ZTV1D]

; CHECK-IR-LABEL: define dso_local i32 @_start
; CHECK-IR-LABEL: define dso_local {{(noundef )?}}i32 @_start
define i32 @_start(ptr %obj, ptr %obj2, i32 %a) {
entry:
%vtable = load ptr, ptr %obj
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/gold/X86/opt-level.ll
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ define internal void @foo() {
}

; CHECK-O0: define internal i32 @bar(
; CHECK-O1: define internal i32 @bar(
; CHECK-O1: define internal noundef i32 @bar(
define internal i32 @bar(i1 %p) {
br i1 %p, label %t, label %f

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ target triple = "x86_64-grtev4-linux-gnu"
;; Prevent the vtables from being dead code eliminated.
@llvm.used = appending global [3 x ptr] [ ptr @_ZTV1B, ptr @_ZTV1C, ptr @_ZTV1D]

; CHECK-IR-LABEL: define dso_local i32 @_start
; CHECK-IR-LABEL: define dso_local {{(noundef )?}}i32 @_start
define i32 @_start(ptr %obj, ptr %obj2, i32 %a) {
entry:
%vtable = load ptr, ptr %obj
Expand Down

0 comments on commit 5c458ed

Please sign in to comment.