Compiler projects using llvm
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s

declare void @foo()

define dso_local i64 @check_lines_1() {
; CHECK-LABEL: check_lines_1:
; CHECK:       # %bb.0:
; CHECK-NEXT:    movl $1, %eax
; CHECK-NEXT:    xorl %edx, %edx
; CHECK-NEXT:    retl
  ret i64 1
}

; UTC_ARGS: --disable

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 dso_local i64 @check_lines_2() {
; CHECK-LABEL: check_lines_2:
; CHECK:       # %bb.0:
; CHECK-NEXT:    calll no_check_lines
; CHECK-NEXT:    retl
  %result = call i64 @no_check_lines()
  ret i64 %result
}