[llvm] r314771 - [RISCV] Add missed test case for r314770
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 3 01:03:14 PDT 2017
Author: asb
Date: Tue Oct 3 01:03:14 2017
New Revision: 314771
URL: http://llvm.org/viewvc/llvm-project?rev=314771&view=rev
Log:
[RISCV] Add missed test case for r314770
Differential Revision: https://reviews.llvm.org/D38311
Patch by https://reviews.llvm.org/D38311
Added:
llvm/trunk/test/Object/RISCV/
llvm/trunk/test/Object/RISCV/elf-flags.yaml
llvm/trunk/test/Object/RISCV/lit.local.cfg
Added: llvm/trunk/test/Object/RISCV/elf-flags.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/RISCV/elf-flags.yaml?rev=314771&view=auto
==============================================================================
--- llvm/trunk/test/Object/RISCV/elf-flags.yaml (added)
+++ llvm/trunk/test/Object/RISCV/elf-flags.yaml Tue Oct 3 01:03:14 2017
@@ -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 ]
Added: llvm/trunk/test/Object/RISCV/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/RISCV/lit.local.cfg?rev=314771&view=auto
==============================================================================
--- llvm/trunk/test/Object/RISCV/lit.local.cfg (added)
+++ llvm/trunk/test/Object/RISCV/lit.local.cfg Tue Oct 3 01:03:14 2017
@@ -0,0 +1,2 @@
+if not 'RISCV' in config.root.targets:
+ config.unsupported = True
More information about the llvm-commits
mailing list