mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Add object-emission flag for lit tests. This flag is used
to disable following tests for Hexagon that require direct object generation support. DebugInfo/dwarf-public-names.ll DebugInfo/dwarf-version.ll DebugInfo/member-pointers.ll DebugInfo/namespace.ll DebugInfo/two-cus-from-same-file.ll Fixes bug 15616 - http://llvm.org/bugs/show_bug.cgi?id=15616 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179209 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4b924d3a61
commit
f0ca9a8c94
@ -1,6 +1,7 @@
|
|||||||
|
; REQUIRES: object-emission
|
||||||
|
|
||||||
; RUN: llc -generate-dwarf-pubnames -filetype=obj -o %t.o < %s
|
; RUN: llc -generate-dwarf-pubnames -filetype=obj -o %t.o < %s
|
||||||
; RUN: llvm-dwarfdump -debug-dump=pubnames %t.o | FileCheck %s
|
; RUN: llvm-dwarfdump -debug-dump=pubnames %t.o | FileCheck %s
|
||||||
; XFAIL: hexagon
|
|
||||||
; ModuleID = 'dwarf-public-names.cpp'
|
; ModuleID = 'dwarf-public-names.cpp'
|
||||||
;
|
;
|
||||||
; Generated from:
|
; Generated from:
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; REQUIRES: object-emission
|
||||||
|
|
||||||
; RUN: llc -filetype=obj -O0 < %s > %t
|
; RUN: llc -filetype=obj -O0 < %s > %t
|
||||||
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
|
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; REQUIRES: object-emission
|
||||||
|
|
||||||
; RUN: llc -filetype=obj -O0 < %s > %t
|
; RUN: llc -filetype=obj -O0 < %s > %t
|
||||||
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
|
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
|
||||||
; CHECK: DW_TAG_ptr_to_member_type
|
; CHECK: DW_TAG_ptr_to_member_type
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
; REQUIRES: object-emission
|
||||||
|
|
||||||
; RUN: llc -O0 -filetype=obj < %s > %t
|
; RUN: llc -O0 -filetype=obj < %s > %t
|
||||||
; RUN: llvm-dwarfdump %t | FileCheck %s
|
; RUN: llvm-dwarfdump %t | FileCheck %s
|
||||||
; CHECK: debug_info contents
|
; CHECK: debug_info contents
|
||||||
|
@ -3,10 +3,11 @@
|
|||||||
; blow llc up and produces something reasonable.
|
; blow llc up and produces something reasonable.
|
||||||
;
|
;
|
||||||
|
|
||||||
|
; REQUIRES: object-emission
|
||||||
|
|
||||||
; RUN: llc %s -o %t -filetype=obj -O0
|
; RUN: llc %s -o %t -filetype=obj -O0
|
||||||
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
|
; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
|
||||||
|
|
||||||
; XFAIL: hexagon
|
|
||||||
; ModuleID = 'test.bc'
|
; ModuleID = 'test.bc'
|
||||||
|
|
||||||
@str = private unnamed_addr constant [4 x i8] c"FOO\00"
|
@str = private unnamed_addr constant [4 x i8] c"FOO\00"
|
||||||
|
@ -273,6 +273,10 @@ if (config.llvm_use_sanitizer == "Memory" or
|
|||||||
config.llvm_use_sanitizer == "MemoryWithOrigins"):
|
config.llvm_use_sanitizer == "MemoryWithOrigins"):
|
||||||
config.available_features.add("msan")
|
config.available_features.add("msan")
|
||||||
|
|
||||||
|
# Direct object generation
|
||||||
|
if not 'hexagon' in config.target_triple:
|
||||||
|
config.available_features.add("object-emission")
|
||||||
|
|
||||||
# llc knows whether he is compiled with -DNDEBUG.
|
# llc knows whether he is compiled with -DNDEBUG.
|
||||||
import subprocess
|
import subprocess
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user