Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/DebugInfo/X86/instr-ref-flag.ll
; RUN: llc %s -o - -stop-before=finalize-isel -march=x86-64 \ | ; RUN: llc %s -o - -stop-before=finalize-isel -march=x86-64 \ | ||||
; RUN: | FileCheck %s --check-prefixes=INSTRREFON | ; RUN: | FileCheck %s --check-prefixes=INSTRREFON | ||||
; RUN: llc %s -o - -stop-before=finalize-isel -march=x86-64 \ | ; RUN: llc %s -o - -stop-before=finalize-isel -march=x86-64 \ | ||||
; RUN: -experimental-debug-variable-locations=true \ | ; RUN: -experimental-debug-variable-locations=true \ | ||||
; RUN: | FileCheck %s --check-prefixes=INSTRREFON | ; RUN: | FileCheck %s --check-prefixes=INSTRREFON | ||||
; RUN: llc %s -o - -stop-before=finalize-isel -march=x86-64 \ | ; RUN: llc %s -o - -stop-before=finalize-isel -march=x86-64 \ | ||||
; RUN: -experimental-debug-variable-locations=false \ | ; RUN: -experimental-debug-variable-locations=false \ | ||||
; RUN: | FileCheck %s --check-prefixes=INSTRREFOFF \ | ; RUN: | FileCheck %s --check-prefixes=INSTRREFOFF \ | ||||
; RUN: --implicit-check-not=DBG_INSTR_REF | ; RUN: --implicit-check-not=DBG_INSTR_REF | ||||
;; This test checks that for an x86 triple, instruction referencing is used | ;; This test checks that for an x86 triple, instruction referencing is used | ||||
;; by llc by default, and that it can be turned explicitly on or off as | ;; by llc by default, and that it can be turned explicitly on or off as | ||||
;; desired. | ;; desired. | ||||
;; XFail it for pre-landing the patch, and to allow a minimal delta if it | |||||
;; has to be reverted. | |||||
; XFAIL: * | |||||
; INSTRREFON: DBG_INSTR_REF | ; INSTRREFON: DBG_INSTR_REF | ||||
; INSTRREFOFF: DBG_VALUE | ; INSTRREFOFF: DBG_VALUE | ||||
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" | target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" | ||||
target triple = "x86_64-unknown-unknown" | target triple = "x86_64-unknown-unknown" | ||||
define hidden i32 @foo(i32 %a) local_unnamed_addr !dbg !7 { | define hidden i32 @foo(i32 %a) local_unnamed_addr !dbg !7 { | ||||
%b = add i32 %a, 1 | %b = add i32 %a, 1 | ||||
Show All 23 Lines |