1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/CodeGen/SystemZ/isel-debug.ll
Jonas Paulsson b70da1d411 [SystemZ] Pass the DAG pointer from SystemZAddressingMode::dump().
In order to print the IR slot number for the memory operand, the DAG pointer
must be passed to SDNode::dump().

The isel-debug.ll test updated to also check for the IR Value reference being
printed correctly.

Review: Ulrich Weigand
https://reviews.llvm.org/D53333

llvm-svn: 345347
2018-10-26 00:02:33 +00:00

20 lines
495 B
LLVM

; RUN: llc < %s -mtriple=s390x-linux-gnu -debug-only=systemz-isel -o - 2>&1 | \
; RUN: FileCheck %s
; REQUIRES: asserts
;
; Check that some debug output is printed without problems.
; CHECK: SystemZAddressingMode
; CHECK: Base t5: i64,ch = load<(load 8 from %ir.0)>
; CHECK: Index
; CHECK: Disp
define void @fun(i64* %ptr) {
entry:
%0 = bitcast i64* %ptr to i32**
%1 = load i32*, i32** %0, align 8
%xpv_pv = getelementptr inbounds i32, i32* %1
store i32 0, i32* %xpv_pv
ret void
}