forked from OSchip/llvm-project
[RISCV] Add missed test case for r314770
Differential Revision: https://reviews.llvm.org/D38311 Patch by https://reviews.llvm.org/D38311 llvm-svn: 314771
This commit is contained in:
parent
1fb1a480b5
commit
3ce3e6326c
|
@ -0,0 +1,17 @@
|
||||||
|
# RUN: yaml2obj %s > %t
|
||||||
|
# RUN: obj2yaml %t | FileCheck -check-prefix=YAML %s
|
||||||
|
|
||||||
|
# YAML: FileHeader:
|
||||||
|
# YAML-NEXT: Class: ELFCLASS32
|
||||||
|
# YAML-NEXT: Data: ELFDATA2LSB
|
||||||
|
# YAML-NEXT: Type: ET_EXEC
|
||||||
|
# YAML-NEXT: Machine: EM_RISCV
|
||||||
|
# YAML-NEXT: Flags: [ EF_RISCV_RVC, EF_RISCV_FLOAT_ABI_DOUBLE, EF_RISCV_RVE ]
|
||||||
|
|
||||||
|
--- !ELF
|
||||||
|
FileHeader:
|
||||||
|
Class: ELFCLASS32
|
||||||
|
Data: ELFDATA2LSB
|
||||||
|
Type: ET_EXEC
|
||||||
|
Machine: EM_RISCV
|
||||||
|
Flags: [ EF_RISCV_RVC, EF_RISCV_FLOAT_ABI_DOUBLE, EF_RISCV_RVE ]
|
|
@ -0,0 +1,2 @@
|
||||||
|
if not 'RISCV' in config.root.targets:
|
||||||
|
config.unsupported = True
|
Loading…
Reference in New Issue