Skip to content
Snippets Groups Projects
Commit 9eacda51 authored by Chris Jackson's avatar Chris Jackson
Browse files

[debuginfo] Fix broken tests from MachineLICM salvaging fix

Previous commit: bd7ff5d9

- Added missing x86 triples
- Added missing asserts
parent 1e06b169
No related branches found
No related tags found
No related merge requests found
--- | --- |
; RUN: llc -start-before=phi-node-elimination -stop-after=machinelicm -o - %s | FileCheck %s ; REQUIRES: asserts
; RUN: llc -start-before=phi-node-elimination -stop-after=machinelicm -debug-only=machinelicm -o - %s | FileCheck %s
; Ensure we execute machinelicm post register allocation. ; Ensure we execute machinelicm post register allocation.
; Line numbers should not be retained when loop invariant instructions are hoisted. ; Line numbers should not be retained when loop invariant instructions are hoisted.
; ;
...@@ -7,6 +8,7 @@ ...@@ -7,6 +8,7 @@
; CHECK: MOV64rm $rip, 1, $noreg, target-flags(x86-gotpcrel) @x, $noreg :: (load 8 from got) ; CHECK: MOV64rm $rip, 1, $noreg, target-flags(x86-gotpcrel) @x, $noreg :: (load 8 from got)
; CHECK-LABEL: bb.1.while.body: ; CHECK-LABEL: bb.1.while.body:
; ;
target triple = "x86_64-unknown-linux-gnu"
@x = common local_unnamed_addr global i32 0, align 4, !dbg !0 @x = common local_unnamed_addr global i32 0, align 4, !dbg !0
......
--- | --- |
; RUN: llc -run-pass=machinelicm -o - %s | FileCheck %s ; RUN: llc -run-pass=machinelicm -o - %s | FileCheck %s
; Line numbers should not be retained when loop invariant instructions are hoisted. ; Line numbers should not be retained when loop invariant instructions are hoisted.
; Doing so causes poor stepping bevavior. ; Doing so causes poor stepping bevavior.
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
; ;
; ModuleID = 'tx.ll' ; ModuleID = 'tx.ll'
source_filename = "t.c" source_filename = "t.c"
target triple = "x86_64-unknown-linux-gnu"
@x = common local_unnamed_addr global i32 0, align 4, !dbg !0 @x = common local_unnamed_addr global i32 0, align 4, !dbg !0
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
; CHECK: %0:gr64 = nuw ADD64ri8 %9, 4, implicit-def dead $eflags ; CHECK: %0:gr64 = nuw ADD64ri8 %9, 4, implicit-def dead $eflags
; ;
; When instructions are sunk to prevent register spills, line numbers should not be retained. ; When instructions are sunk to prevent register spills, line numbers should not be retained.
target triple = "x86_64-unknown-linux-gnu"
%struct.A = type { i32, i32, i32, i32, i32, i32 } %struct.A = type { i32, i32, i32, i32, i32, i32 }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment