[PATCH] D38199: Make test supported only when armv7s target is available.

Taewook Oh via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 05:04:04 PDT 2017


twoh created this revision.
Herald added subscribers: kristof.beyls, javed.absar, aemerson.

Make test supported only when armv7s target is available. Without this patch, the test was failed with following llvm-objdump error message:

llvm-objdump: error: unable to get target for 'armv7s-apple-darwin', see --version and --triple.
llvm-objdump: error: unable to get target for 'armv7s-apple-darwin', see --version and --triple.

When I tried llvm-objdump -version, below was the output:

LLVM (http://llvm.org/):

  LLVM version 6.0.0svn
  Optimized build.
  Default target: x86_64-unknown-linux-gnu
  Host CPU: ivybridge
  
  Registered Targets:
    aarch64    - AArch64 (little endian)
    aarch64_be - AArch64 (big endian)
    arm64      - ARM64 (little endian)
    x86        - 32-bit X86: Pentium-Pro and above
    x86-64     - 64-bit X86: EM64T and AMD64


https://reviews.llvm.org/D38199

Files:
  test/tools/llvm-objdump/AArch64/macho-fat-arm-disasm.test


Index: test/tools/llvm-objdump/AArch64/macho-fat-arm-disasm.test
===================================================================
--- test/tools/llvm-objdump/AArch64/macho-fat-arm-disasm.test
+++ test/tools/llvm-objdump/AArch64/macho-fat-arm-disasm.test
@@ -1,3 +1,4 @@
+REQUIRES: armv7s
 RUN: llvm-objdump -d -m -no-show-raw-insn -arch all %p/Inputs/fat.macho-armv7s-arm64 | FileCheck %s
 
 CHECK: (architecture armv7s):


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38199.116417.patch
Type: text/x-patch
Size: 425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170925/1424af1e/attachment.bin>


More information about the llvm-commits mailing list