[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:
Alex Bradbury 2017-10-03 08:03:14 +00:00
parent 1fb1a480b5
commit 3ce3e6326c
2 changed files with 19 additions and 0 deletions

View File

@ -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 ]

View File

@ -0,0 +1,2 @@
if not 'RISCV' in config.root.targets:
config.unsupported = True