- This patch consists of the bare basic code needed in order to generate some assembly for the z/OS target. - Only the .text and the .bss sections are added for now. - The relevant MCSectionGOFF/Symbol interfaces have been added. This enables us to print out the GOFF machine code sections. - This patch enables us to add simple lit tests wherever possible, and contribute to the testing coverage for the z/OS target - Further improvements and additions will be made in future patches. Reviewed By: tmatheson Differential Revision: https://reviews.llvm.org/D106380
14 lines
286 B
LLVM
14 lines
286 B
LLVM
; A simple, barebones test to check whether assembly can be emitted
|
|
; for the z/OS target
|
|
; RUN: llc < %s -mtriple=s390x-ibm-zos | FileCheck %s
|
|
|
|
@a = global i32 0, align 4
|
|
|
|
define signext i32 @main() {
|
|
; CHECK: .section ".text"
|
|
; CHECK: main:
|
|
; CHECK: .section "a"
|
|
entry:
|
|
ret i32 0
|
|
}
|