This will currently accept the old number of bytes syntax, and convert it to a scalar. This should be removed in the near future (I think I converted all of the tests already, but likely missed a few). Not sure what the exact syntax and policy should be. We can continue printing the number of bytes for non-generic instructions to avoid test churn and only allow non-scalar types for generic instructions. This will currently print the LLT in parentheses, but accept parsing the existing integers and implicitly converting to scalar. The parentheses are a bit ugly, but the parser logic seems unable to deal without either parentheses or some keyword to indicate the start of a type.
20 lines
499 B
LLVM
20 lines
499 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 (s64) 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
|
|
}
|