llvm-project/llvm/test/CodeGen/SystemZ/zos-stackpointer.ll
tltao c170405996
[SystemZ] Introduce GNU and HLASM differences to asmwriter and update tests (#113369)
Now that the GNU and HLASM `InstPrinter` paths are separated in
https://github.com/llvm/llvm-project/pull/112975, differentiate between
them in `SystemZInstrFormats.td`.

The main difference are:
- Tabs converted to space
- Remove space after comma for instruction operands

---------

Co-authored-by: Tony Tao <tonytao@ca.ibm.com>
2024-10-23 13:06:48 -04:00

17 lines
340 B
LLVM

; RUN: llc < %s -mtriple=s390x-ibm-zos | FileCheck %s
; CHECK-LABEL: get_stack:
; CHECK: lgr 3,4
; CHECK: b 2(7)
define ptr @get_stack() nounwind {
entry:
%0 = call i64 @llvm.read_register.i64(metadata !0)
%1 = inttoptr i64 %0 to ptr
ret ptr %1
}
declare i64 @llvm.read_register.i64(metadata) nounwind
!0 = !{!"r4"}