Skip to content

Commit

Permalink
[RISCV] Add missed test case for r314770
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D38311
Patch by https://reviews.llvm.org/D38311


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314771 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
asb committed Oct 3, 2017
1 parent 5533e5f commit b02d7df
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/Object/RISCV/elf-flags.yaml
Original file line number Diff line number Diff line change
@@ -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 ]
2 changes: 2 additions & 0 deletions test/Object/RISCV/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
if not 'RISCV' in config.root.targets:
config.unsupported = True

0 comments on commit b02d7df

Please sign in to comment.