mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
5a7de1d054
- Background here is that that these sets of tests are "invalid" to be run on z/OS - The reason is because these test constructs that HLASM never supports (HLASM doesn't support GNU style directives) - Usually tests are geared towards a particular target via the use of a triple that targets just that platform, but these tests require the use of a "default triple" - Thus, we mark these tests as "UNSUPPORTED" for z/OS since we don't want to run these for z/OS Reviewed By: yusra.syeda, abhina.sreeskantharajan Differential Revision: https://reviews.llvm.org/D105204
28 lines
889 B
ArmAsm
28 lines
889 B
ArmAsm
# UNSUPPORTED: -zos
|
|
# REQUIRES: default_triple
|
|
# RUN: llvm-mc -dwarf-version 5 --defsym FILE0=1 %s -filetype=obj -o - | llvm-dwarfdump -debug-line - | FileCheck %s
|
|
# RUN: not llvm-mc -dwarf-version 4 %s -filetype=asm -o - 2>&1 | FileCheck %s -check-prefix=ERR
|
|
# Show that ".loc 0" works in DWARF v5, gets an error for earlier versions.
|
|
.ifdef FILE0
|
|
.file 0 "root.cpp"
|
|
.endif
|
|
.file 1 "header.h"
|
|
.loc 0 10 0
|
|
.byte 0
|
|
.loc 1 20 0
|
|
.byte 0
|
|
|
|
# CHECK: file_names[ 0]:
|
|
# CHECK-NEXT: name: "root.cpp"
|
|
# CHECK: file_names[ 1]:
|
|
# CHECK-NEXT: name: "header.h"
|
|
# CHECK: Address Line Column File
|
|
# CHECK-NEXT: -------
|
|
# CHECK-NEXT: 0x{{[0-9a-f]+}} 10 0 0
|
|
# CHECK-NEXT: 0x{{[0-9a-f]+}} 20 0 1
|
|
# CHECK-NEXT: 0x{{[0-9a-f]+}} 20 0 1 {{.*}} end_sequence
|
|
|
|
# ERR: file number less than one in '.loc' directive
|
|
# ERR-NEXT: .loc 0 10 0
|
|
# ERR-NEXT: ^
|