xref: /llvm-project/llvm/test/CodeGen/SystemZ/isel-debug.ll (revision ff9af4c43ad71eeba2cabe99609cfaa0fd54c1d0)
1; RUN: llc < %s -mtriple=s390x-linux-gnu -debug-only=systemz-isel -o - 2>&1 | \
2; RUN:   FileCheck %s
3
4; REQUIRES: asserts
5;
6; Check that some debug output is printed without problems.
7; CHECK: SystemZAddressingMode
8; CHECK: Base t5: i64,ch = load<(load (s64) from %ir.0)>
9; CHECK: Index
10; CHECK: Disp
11
12define void @fun(ptr %ptr) {
13entry:
14  %0 = bitcast ptr %ptr to ptr
15  %1 = load ptr, ptr %0, align 8
16  %xpv_pv = getelementptr inbounds i32, ptr %1
17  store i32 0, ptr %xpv_pv
18  ret void
19}
20