Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

declare void @foo()

define i64 @check_lines_1() {
define dso_local i64 @check_lines_1() {
; CHECK-LABEL: check_lines_1:
; CHECK: # %bb.0:
; CHECK-NEXT: movl $1, %eax
Expand All @@ -14,15 +14,15 @@ define i64 @check_lines_1() {

; UTC_ARGS: --disable

define i64 @no_check_lines() {
define dso_local i64 @no_check_lines() {
; A check line that would not be auto-generated (should not be removed!).
; CHECK: manual check line
ret i64 2
}

; UTC_ARGS: --enable --no_x86_scrub_rip

define i64 @check_lines_2() {
define dso_local i64 @check_lines_2() {
; CHECK-LABEL: check_lines_2:
; CHECK: # %bb.0:
; CHECK-NEXT: calll no_check_lines
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; RUN: llc -enable-machine-outliner -mtriple=s390x-unknown-linux < %s | FileCheck %s
;
; NOTE: Machine outliner doesn't run.
@x = global i32 0, align 4
@x = dso_local global i32 0, align 4

define dso_local i32 @check_boundaries() #0 {
%1 = alloca i32, align 4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --include-generated-funcs
; RUN: llc -enable-machine-outliner -mtriple=s390x-unknown-linux < %s | FileCheck %s
; NOTE: Machine outliner doesn't run.
@x = global i32 0, align 4
@x = dso_local global i32 0, align 4

define dso_local i32 @check_boundaries() #0 {
%1 = alloca i32, align 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; RUN: llc -enable-machine-outliner -mtriple=s390x-unknown-linux < %s | FileCheck %s
;
; NOTE: Machine outliner doesn't run.
@x = global i32 0, align 4
@x = dso_local global i32 0, align 4

define dso_local i32 @check_boundaries() #0 {
; CHECK-LABEL: check_boundaries:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; RUN: llc -enable-machine-outliner -mtriple=x86_64-unknown-linux < %s | FileCheck %s
@x = global i32 0, align 4
@x = dso_local global i32 0, align 4

define dso_local i32 @check_boundaries() #0 {
%1 = alloca i32, align 4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --include-generated-funcs
; RUN: llc -enable-machine-outliner -mtriple=x86_64-unknown-linux < %s | FileCheck %s
@x = global i32 0, align 4
@x = dso_local global i32 0, align 4

define dso_local i32 @check_boundaries() #0 {
%1 = alloca i32, align 4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -enable-machine-outliner -mtriple=x86_64-unknown-linux < %s | FileCheck %s
@x = global i32 0, align 4
@x = dso_local global i32 0, align 4

define dso_local i32 @check_boundaries() #0 {
; CHECK-LABEL: check_boundaries:
Expand Down