mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
8c2f634996
This patch adds the basic functions needed for controlling auto conversion on z/OS. Auto conversion is enabled on untagged input file to ASCII by making the assumption that all untagged files are EBCDIC encoded. Output files are auto converted to EBCDIC IBM-1047. This change also enables conversion for stdin/stdout/stderr. For more information on how fcntl controls codepage https://www.ibm.com/docs/en/zos/2.4.0?topic=descriptions-fcntl-bpx1fct-bpx4fct-control-open-file-descriptors Reviewed By: anirudhp Differential Revision: https://reviews.llvm.org/D100483
11 lines
427 B
LLVM
11 lines
427 B
LLVM
; Checks if llc can deal with different char encodings.
|
|
; This is only required for z/OS.
|
|
;
|
|
; UNSUPPORTED: !s390x-none-zos
|
|
;
|
|
; RUN: cat %s >%t && chtag -tc ISO8859-1 %t && llc %t -o - >/dev/null
|
|
; RUN: iconv -f ISO8859-1 -t IBM-1047 <%s >%t && chtag -tc IBM-1047 %t && llc %t -o - >/dev/null
|
|
; RUN: iconv -f ISO8859-1 -t IBM-1047 <%s >%t && chtag -r %t && llc %t -o - >/dev/null
|
|
|
|
@g_105 = external dso_local global i8, align 2
|