Skip to content

Commit ea3c096

Browse files
authored
Disable LLVM LIT suites and tests (#4827)
Disable LLVM LIT suites and tests This patch is a little more selective than the clang counterpart. Most of the LLVM tests are expected to pass in DXC. In cases where very few tests are failing for obvious reasons I've disabled individual tests using `REQUIRES` lines. In most places I've disabled whole suites. Any suite that is expected to pass, I've also included a comment of the failing test cases so that we can investigate further. IR Verifier and Integer tests are disabled only on Windows. These tests pass on *nix platforms but fail on Windows due to the MS filesystem modifications causing llvm-as to crash.
1 parent cde8ccc commit ea3c096

26 files changed

Lines changed: 556 additions & 1 deletion

File tree

test/Analysis/lit.local.cfg

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
config.unsupported = True # HLSL Change - Disable lit suites.
2+
3+
# Failing Tests (26):
4+
# LLVM :: Analysis/BasicAA/2008-04-15-Byval.ll
5+
# LLVM :: Analysis/BasicAA/cs-cs.ll
6+
# LLVM :: Analysis/BasicAA/intrinsics.ll
7+
# LLVM :: Analysis/BasicAA/modref.ll
8+
# LLVM :: Analysis/BasicAA/pr18573.ll
9+
# LLVM :: Analysis/CallGraph/non-leaf-intrinsics.ll
10+
# LLVM :: Analysis/Delinearization/multidim_two_accesses_different_delinearization.ll
11+
# LLVM :: Analysis/DependenceAnalysis/Banerjee.ll
12+
# LLVM :: Analysis/DependenceAnalysis/GCD.ll
13+
# LLVM :: Analysis/DependenceAnalysis/NonCanonicalizedSubscript.ll
14+
# LLVM :: Analysis/LazyCallGraph/non-leaf-intrinsics.ll
15+
# LLVM :: Analysis/RegionInfo/multiple_exiting_edge.ll
16+
# LLVM :: Analysis/ScalarEvolution/2007-07-15-NegativeStride.ll
17+
# LLVM :: Analysis/ScalarEvolution/2007-09-27-LargeStepping.ll
18+
# LLVM :: Analysis/ScalarEvolution/2008-05-25-NegativeStepToZero.ll
19+
# LLVM :: Analysis/ScalarEvolution/2008-07-19-InfiniteLoop.ll
20+
# LLVM :: Analysis/ScalarEvolution/2008-07-19-WrappingIV.ll
21+
# LLVM :: Analysis/ScalarEvolution/2008-07-29-SGTTripCount.ll
22+
# LLVM :: Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll
23+
# LLVM :: Analysis/ScalarEvolution/2008-08-04-IVOverflow.ll
24+
# LLVM :: Analysis/ScalarEvolution/2008-08-04-LongAddRec.ll
25+
# LLVM :: Analysis/ScalarEvolution/SolveQuadraticEquation.ll
26+
# LLVM :: Analysis/ScalarEvolution/trip-count.ll
27+
# LLVM :: Analysis/TypeBasedAliasAnalysis/argument-promotion.ll
28+
# LLVM :: Analysis/ValueTracking/dom-cond.ll
29+
# LLVM :: Analysis/ValueTracking/memory-dereferenceable.ll

test/Assembler/lit.local.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
config.unsupported = True # HLSL Change - Disable lit suites.
2+
3+
# Failing Tests (5):
4+
# LLVM :: Assembler/2007-09-29-GC.ll
5+
# LLVM :: Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll
6+
# LLVM :: Assembler/bcwrap.ll
7+
# LLVM :: Assembler/half-constprop.ll
8+
# LLVM :: Assembler/half-conv.ll

test/Bitcode/lit.local.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
config.unsupported = True # HLSL Change - Disable lit suites.
2+
3+
# Failing Tests (3):
4+
# LLVM :: Bitcode/highLevelStructure.3.2.ll
5+
# LLVM :: Bitcode/invalid.test
6+
# LLVM :: Bitcode/ptest-old.ll

test/CodeGen/lit.local.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config.unsupported = True # HLSL Change - Disable lit suites.

test/Feature/lit.local.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
config.unsupported = True # HLSL Change - Disable lit suites.
2+
3+
# Failing Tests (6):
4+
# LLVM :: Feature/intrinsic-noduplicate.ll
5+
# LLVM :: Feature/load_module.ll
6+
# LLVM :: Feature/prefixdata.ll
7+
# LLVM :: Feature/prologuedata.ll
8+
# LLVM :: Feature/seh-nounwind.ll
9+
# LLVM :: Feature/weak_constant.ll

test/Instrumentation/lit.local.cfg

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
config.unsupported = True # HLSL Change - Disable lit suites.
2+
3+
# Failing Tests (86):
4+
# LLVM :: Instrumentation/AddressSanitizer/adaptive_global_redzones.ll
5+
# LLVM :: Instrumentation/AddressSanitizer/asan-vs-gvn.ll
6+
# LLVM :: Instrumentation/AddressSanitizer/basic.ll
7+
# LLVM :: Instrumentation/AddressSanitizer/debug_info.ll
8+
# LLVM :: Instrumentation/AddressSanitizer/do-not-instrument-cstring.ll
9+
# LLVM :: Instrumentation/AddressSanitizer/do-not-instrument-internal-globals.ll
10+
# LLVM :: Instrumentation/AddressSanitizer/do-not-instrument-llvm-metadata-darwin.ll
11+
# LLVM :: Instrumentation/AddressSanitizer/do-not-instrument-llvm-metadata.ll
12+
# LLVM :: Instrumentation/AddressSanitizer/do-not-instrument-promotable-allocas.ll
13+
# LLVM :: Instrumentation/AddressSanitizer/do-not-touch-comdat-global.ll
14+
# LLVM :: Instrumentation/AddressSanitizer/do-not-touch-odr-global.ll
15+
# LLVM :: Instrumentation/AddressSanitizer/do-not-touch-threadlocal.ll
16+
# LLVM :: Instrumentation/AddressSanitizer/experiment-call.ll
17+
# LLVM :: Instrumentation/AddressSanitizer/experiment.ll
18+
# LLVM :: Instrumentation/AddressSanitizer/freebsd.ll
19+
# LLVM :: Instrumentation/AddressSanitizer/global_metadata.ll
20+
# LLVM :: Instrumentation/AddressSanitizer/instrument-dynamic-allocas.ll
21+
# LLVM :: Instrumentation/AddressSanitizer/instrument-no-return.ll
22+
# LLVM :: Instrumentation/AddressSanitizer/instrument-stack.ll
23+
# LLVM :: Instrumentation/AddressSanitizer/instrument_global.ll
24+
# LLVM :: Instrumentation/AddressSanitizer/instrument_initializer_metadata.ll
25+
# LLVM :: Instrumentation/AddressSanitizer/instrument_load_then_store.ll
26+
# LLVM :: Instrumentation/AddressSanitizer/instrumentation-with-call-threshold.ll
27+
# LLVM :: Instrumentation/AddressSanitizer/lifetime-uar.ll
28+
# LLVM :: Instrumentation/AddressSanitizer/lifetime.ll
29+
# LLVM :: Instrumentation/AddressSanitizer/stack-poisoning.ll
30+
# LLVM :: Instrumentation/AddressSanitizer/stack_dynamic_alloca.ll
31+
# LLVM :: Instrumentation/AddressSanitizer/stack_layout.ll
32+
# LLVM :: Instrumentation/AddressSanitizer/test64.ll
33+
# LLVM :: Instrumentation/AddressSanitizer/ubsan.ll
34+
# LLVM :: Instrumentation/BoundsChecking/many-trap.ll
35+
# LLVM :: Instrumentation/BoundsChecking/phi.ll
36+
# LLVM :: Instrumentation/BoundsChecking/simple-32.ll
37+
# LLVM :: Instrumentation/BoundsChecking/simple.ll
38+
# LLVM :: Instrumentation/DataFlowSanitizer/abilist.ll
39+
# LLVM :: Instrumentation/DataFlowSanitizer/args-unreachable-bb.ll
40+
# LLVM :: Instrumentation/DataFlowSanitizer/arith.ll
41+
# LLVM :: Instrumentation/DataFlowSanitizer/call.ll
42+
# LLVM :: Instrumentation/DataFlowSanitizer/debug-nonzero-labels.ll
43+
# LLVM :: Instrumentation/DataFlowSanitizer/debug.ll
44+
# LLVM :: Instrumentation/DataFlowSanitizer/load.ll
45+
# LLVM :: Instrumentation/DataFlowSanitizer/memset.ll
46+
# LLVM :: Instrumentation/DataFlowSanitizer/prefix-rename.ll
47+
# LLVM :: Instrumentation/DataFlowSanitizer/store.ll
48+
# LLVM :: Instrumentation/DataFlowSanitizer/union-large.ll
49+
# LLVM :: Instrumentation/DataFlowSanitizer/union.ll
50+
# LLVM :: Instrumentation/InstrProfiling/PR23499.ll
51+
# LLVM :: Instrumentation/InstrProfiling/linkage.ll
52+
# LLVM :: Instrumentation/InstrProfiling/no-counters.ll
53+
# LLVM :: Instrumentation/InstrProfiling/noruntime.ll
54+
# LLVM :: Instrumentation/InstrProfiling/platform.ll
55+
# LLVM :: Instrumentation/InstrProfiling/profiling.ll
56+
# LLVM :: Instrumentation/MemorySanitizer/X86/vararg.ll
57+
# LLVM :: Instrumentation/MemorySanitizer/array_types.ll
58+
# LLVM :: Instrumentation/MemorySanitizer/atomics.ll
59+
# LLVM :: Instrumentation/MemorySanitizer/byval-alignment.ll
60+
# LLVM :: Instrumentation/MemorySanitizer/check-constant-shadow.ll
61+
# LLVM :: Instrumentation/MemorySanitizer/check_access_address.ll
62+
# LLVM :: Instrumentation/MemorySanitizer/instrumentation-with-call-threshold.ll
63+
# LLVM :: Instrumentation/MemorySanitizer/missing_origin.ll
64+
# LLVM :: Instrumentation/MemorySanitizer/msan_basic.ll
65+
# LLVM :: Instrumentation/MemorySanitizer/mul_by_constant.ll
66+
# LLVM :: Instrumentation/MemorySanitizer/origin-alignment.ll
67+
# LLVM :: Instrumentation/MemorySanitizer/return_from_main.ll
68+
# LLVM :: Instrumentation/MemorySanitizer/store-long-origin.ll
69+
# LLVM :: Instrumentation/MemorySanitizer/store-origin.ll
70+
# LLVM :: Instrumentation/MemorySanitizer/unreachable.ll
71+
# LLVM :: Instrumentation/MemorySanitizer/vector_arith.ll
72+
# LLVM :: Instrumentation/MemorySanitizer/vector_cvt.ll
73+
# LLVM :: Instrumentation/MemorySanitizer/vector_pack.ll
74+
# LLVM :: Instrumentation/MemorySanitizer/vector_shift.ll
75+
# LLVM :: Instrumentation/SanitizerCoverage/cmp-tracing.ll
76+
# LLVM :: Instrumentation/SanitizerCoverage/coverage-dbg.ll
77+
# LLVM :: Instrumentation/SanitizerCoverage/coverage.ll
78+
# LLVM :: Instrumentation/SanitizerCoverage/coverage2-dbg.ll
79+
# LLVM :: Instrumentation/SanitizerCoverage/tracing.ll
80+
# LLVM :: Instrumentation/ThreadSanitizer/atomic.ll
81+
# LLVM :: Instrumentation/ThreadSanitizer/capture.ll
82+
# LLVM :: Instrumentation/ThreadSanitizer/no_sanitize_thread.ll
83+
# LLVM :: Instrumentation/ThreadSanitizer/read_before_write.ll
84+
# LLVM :: Instrumentation/ThreadSanitizer/read_from_global.ll
85+
# LLVM :: Instrumentation/ThreadSanitizer/tsan-vs-gvn.ll
86+
# LLVM :: Instrumentation/ThreadSanitizer/tsan_basic.ll
87+
# LLVM :: Instrumentation/ThreadSanitizer/unaligned.ll
88+
# LLVM :: Instrumentation/ThreadSanitizer/vptr_read.ll
89+
# LLVM :: Instrumentation/ThreadSanitizer/vptr_update.ll

test/Integer/2007-01-19-TruncSext.ll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
; RUN: llvm-as < %s | lli --force-interpreter=true | FileCheck %s
55
; CHECK: -255
66

7+
; HLSL Change: lli doesn't work in DXC
8+
; REQUIRES: hlsl-lli
9+
710
@ARRAY = global [ 20 x i17 ] zeroinitializer
811
@FORMAT = constant [ 4 x i8 ] c"%d\0A\00"
912

test/Integer/lit.local.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# HLSL Change
2+
# Disable verifier tests on Windows. These fail due to issues with the MS
3+
# filesystem code causing llvm-as to crash.
4+
import sys
5+
if sys.platform in ['win32']:
6+
config.unsupported = True

test/Linker/lit.local.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
config.unsupported = True # HLSL Change - Disable lit suites.
2+
3+
# Failing Tests (8):
4+
# LLVM :: Linker/pr21374.ll
5+
# LLVM :: Linker/subprogram-linkonce-weak-odr.ll
6+
# LLVM :: Linker/subprogram-linkonce-weak.ll
7+
# LLVM :: Linker/type-unique-odr-a.ll
8+
# LLVM :: Linker/type-unique-simple-a.ll
9+
# LLVM :: Linker/type-unique-simple2-a.ll
10+
# LLVM :: Linker/type-unique-simple2.ll
11+
# LLVM :: Linker/type-unique-type-array-a.ll

test/MC/lit.local.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config.unsupported = True # HLSL Change - Disable lit suites.

0 commit comments

Comments
 (0)