[llvm] r211969 - [RuntimeDyld] Make sure that RuntimeDyld regression tests only run for targets

Lang Hames lhames at gmail.com
Fri Jun 27 16:29:18 PDT 2014


Author: lhames
Date: Fri Jun 27 18:29:18 2014
New Revision: 211969

URL: http://llvm.org/viewvc/llvm-project?rev=211969&view=rev
Log:
[RuntimeDyld] Make sure that RuntimeDyld regression tests only run for targets
that have been enabled.

Without this, testers will fail when llvm-rtdyld is invoked with triples for
unsupported targets.

Added:
    llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/
    llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s
      - copied unchanged from r211956, llvm/trunk/test/ExecutionEngine/RuntimeDyld/MachO_x86-64_PIC_relocations.s
    llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/lit.local.cfg
Removed:
    llvm/trunk/test/ExecutionEngine/RuntimeDyld/MachO_x86-64_PIC_relocations.s

Removed: llvm/trunk/test/ExecutionEngine/RuntimeDyld/MachO_x86-64_PIC_relocations.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ExecutionEngine/RuntimeDyld/MachO_x86-64_PIC_relocations.s?rev=211968&view=auto
==============================================================================
--- llvm/trunk/test/ExecutionEngine/RuntimeDyld/MachO_x86-64_PIC_relocations.s (original)
+++ llvm/trunk/test/ExecutionEngine/RuntimeDyld/MachO_x86-64_PIC_relocations.s (removed)
@@ -1,32 +0,0 @@
-# RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -relocation-model=pic -filetype=obj -o %s.o %s
-# RUN: llvm-rtdyld -triple=x86_64-apple-macosx10.9 -verify -check=%s %s.o
-# RUN: rm %s.o
-
-        .section	__TEXT,__text,regular,pure_instructions
-	.globl	foo
-	.align	4, 0x90
-foo:
-        retq
-
-	.globl	main
-	.align	4, 0x90
-main:
-# Test PC-rel branch.
-# rtdyld-check: decode_operand(insn1, 0) = foo - next_pc(insn1)
-insn1:
-        callq	foo
-
-# Test PC-rel signed.
-# rtdyld-check: decode_operand(insn2, 4) = x - next_pc(insn2)
-insn2:
-	movl	x(%rip), %eax
-	movl	$0, %eax
-	retq
-
-        .section	__DATA,__data
-	.globl	x
-	.align	2
-x:
-        .long   5
-
-.subsections_via_symbols

Added: llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/lit.local.cfg?rev=211969&view=auto
==============================================================================
--- llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/lit.local.cfg (added)
+++ llvm/trunk/test/ExecutionEngine/RuntimeDyld/X86/lit.local.cfg Fri Jun 27 18:29:18 2014
@@ -0,0 +1,3 @@
+if not 'X86' in config.root.targets:
+    config.unsupported = True
+





More information about the llvm-commits mailing list