Enable LLVM tests if proper python and GNU make version is present.

Also update win32 buildfiles.
0.96
Török Edvin 15 years ago
parent d4b26a859d
commit 4a9a73338b
  1. 6
      libclamav/c++/Makefile.am
  2. 14
      libclamav/c++/Makefile.in
  3. 7
      libclamav/c++/llvm/test/CodeGen/X86/2009-03-23-i80-fp80.ll
  4. 3
      libclamav/c++/llvm/test/CodeGen/X86/2009-09-07-CoalescerBug.ll
  5. 3
      libclamav/c++/llvm/test/CodeGen/X86/and-or-fold.ll
  6. 5
      libclamav/c++/llvm/test/CodeGen/X86/asm-block-labels.ll
  7. 13
      libclamav/c++/llvm/test/CodeGen/X86/nancvt.ll
  8. 2
      libclamav/c++/llvm/test/CodeGen/X86/ptrtoint-constexpr.ll
  9. 8
      libclamav/c++/llvm/test/CodeGen/X86/vec_ins_extract.ll
  10. 1
      libclamav/c++/llvm/test/ExecutionEngine/2002-12-16-ArgTest.ll
  11. 1
      libclamav/c++/llvm/test/ExecutionEngine/2003-05-07-ArgumentTest.ll
  12. 1
      libclamav/c++/llvm/test/ExecutionEngine/2003-08-21-EnvironmentTest.ll
  13. 1
      libclamav/c++/llvm/test/ExecutionEngine/hello.ll
  14. 1
      libclamav/c++/llvm/test/ExecutionEngine/hello2.ll
  15. 1
      libclamav/c++/llvm/test/ExecutionEngine/stubs.ll
  16. 2
      libclamav/c++/llvm/test/ExecutionEngine/test-fp.ll
  17. 2
      libclamav/c++/llvm/test/ExecutionEngine/test-malloc.ll
  18. 13
      libclamav/c++/llvmcheck.sh
  19. 7
      libclamav/c++/llvmdejagnu.sh
  20. 16
      win32/LLVMcodegen.vcproj
  21. 4
      win32/LLVMjit.vcproj
  22. 10
      win32/LLVMx86codegen.vcproj
  23. 2
      win32/clamav-config.h
  24. 42
      win32/libclamavcxx.vcproj

@ -77,7 +77,7 @@ TBLGENFILES=llvm/include/llvm/Intrinsics.gen X86GenRegisterInfo.h.inc X86GenRegi
ARMGenAsmWriter.inc ARMGenDAGISel.inc ARMGenCallingConv.inc ARMGenSubtarget.inc
BUILT_SOURCES=
EXTRA_DIST=$(top_srcdir)/llvm llvmdejagnu.sh $(TBLGENFILES)
EXTRA_DIST=$(top_srcdir)/llvm llvmcheck.sh $(TBLGENFILES)
libllvmsystem_la_LDFLAGS=@THREAD_LIBS@
libllvmsystem_la_LIBADD=
@ -772,14 +772,14 @@ FileCheck_SOURCES=llvm/utils/FileCheck/FileCheck.cpp
check_LTLIBRARIES=libllvmbitreader.la libllvmsupport.la libllvmfullcodegen.la libllvmasmprinter.la libllvmbitwriter.la libllvmasmparser.la libgoogletest.la libllvminterpreter.la
check_PROGRAMS=count not lli llc llvm-as llvm-dis llvmunittest_ADT llvmunittest_Support llvmunittest_VMCore llvmunittest_ExecutionEngine llvmunittest_JIT FileCheck
check_SCRIPTS=llvmdejagnu.sh
check_SCRIPTS=llvmcheck.sh
TESTS_ENVIRONMENT=export GMAKE=@GMAKE@;
TESTS=llvmunittest_ADT llvmunittest_Support llvmunittest_VMCore llvmunittest_ExecutionEngine llvmunittest_JIT
# Disable LLVM make check for now, there are some things to fix first:
# - check python version (2.4 doesn't work, needs 2.5+)
# - run llvm's make check after clamav's was run
# - have a way to run only clamav's make check and not llvm's
#@ifGNUmake@ TESTS+=llvmdejagnu.sh
@ifGNUmake@ TESTS+=llvmcheck.sh
libllvmasmprinter_la_CPPFLAGS=$(LLVM_INCLUDES) $(LLVM_DEFS) -I$(top_srcdir)/llvm/lib/Target/X86 \
-I$(top_srcdir)/llvm/lib/Target/PowerPC -I$(top_srcdir)/llvm/lib/Target/ARM

@ -956,7 +956,7 @@ TBLGENFILES = llvm/include/llvm/Intrinsics.gen X86GenRegisterInfo.h.inc X86GenRe
# Rule to rerun LLVM's configure if it changed, before building anything else
# LLVM
BUILT_SOURCES = $(am__append_13) llvm/config.status
EXTRA_DIST = $(top_srcdir)/llvm llvmdejagnu.sh $(TBLGENFILES)
EXTRA_DIST = $(top_srcdir)/llvm llvmcheck.sh $(TBLGENFILES)
libllvmsystem_la_LDFLAGS = @THREAD_LIBS@
libllvmsystem_la_LIBADD =
libllvmsystem_la_SOURCES = llvm/lib/System/Alarm.cpp \
@ -1527,13 +1527,8 @@ FileCheck_CXXFLAGS = $(LLVM_CXXFLAGS)
FileCheck_LDADD = libllvmsupport.la libllvmsystem.la
FileCheck_SOURCES = llvm/utils/FileCheck/FileCheck.cpp
check_LTLIBRARIES = libllvmbitreader.la libllvmsupport.la libllvmfullcodegen.la libllvmasmprinter.la libllvmbitwriter.la libllvmasmparser.la libgoogletest.la libllvminterpreter.la
check_SCRIPTS = llvmdejagnu.sh
check_SCRIPTS = llvmcheck.sh
TESTS_ENVIRONMENT = export GMAKE=@GMAKE@;
# Disable LLVM make check for now, there are some things to fix first:
# - check python version (2.4 doesn't work, needs 2.5+)
# - run llvm's make check after clamav's was run
# - have a way to run only clamav's make check and not llvm's
#@ifGNUmake@ TESTS+=llvmdejagnu.sh
libllvmasmprinter_la_CPPFLAGS = $(LLVM_INCLUDES) $(LLVM_DEFS) -I$(top_srcdir)/llvm/lib/Target/X86 \
-I$(top_srcdir)/llvm/lib/Target/PowerPC -I$(top_srcdir)/llvm/lib/Target/ARM
@ -7828,6 +7823,11 @@ uninstall-am:
@MAINTAINER_MODE_TRUE@ARMGenSubtarget.inc: llvm/lib/Target/ARM/ARM.td $(TBLGEN)
@MAINTAINER_MODE_TRUE@ $(TBLGEN_V) $(TBLGEN_FLAGS_ARM) -gen-subtarget -o $@ $<
# Disable LLVM make check for now, there are some things to fix first:
# - check python version (2.4 doesn't work, needs 2.5+)
# - run llvm's make check after clamav's was run
# - have a way to run only clamav's make check and not llvm's
@ifGNUmake@ TESTS+=llvmcheck.sh
#bytecode2llvm.cpp: build-llvm

@ -1,6 +1,7 @@
; RUN: opt < %s -instcombine -S | grep 302245289961712575840256
; RUN: opt < %s -instcombine -S | grep K40018000000000000000
; XFAIL: *
; RUNX: opt < %s -instcombine -S | grep 302245289961712575840256
; RUNX: opt < %s -instcombine -S | grep K40018000000000000000
; RUN: true
; ClamAV local: no opt
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i686-apple-darwin9"

@ -8,8 +8,7 @@
define i64 @hammer_time(i64 %modulep, i64 %physfree) nounwind ssp noredzone noimplicitfloat {
; CHECK: hammer_time:
; CHECK: movq $Xrsvd, %rax
; CHECK: movq $Xrsvd, %rsi
; CHECK: movq $Xrsvd, %rdi
; CHECK: movq $Xrsvd, %rcx
entry:
br i1 undef, label %if.then, label %if.end

@ -1,5 +1,6 @@
; RUN: llc < %s -mtriple=i686-apple-darwin | FileCheck -check-prefix=DARWIN %s
; RUN: opt < %s -O2 | llc -mtriple=x86_64-apple-darwin | FileCheck -check-prefix=DARWIN-OPT %s
; ClamAV local: no opt
; RUNX: opt < %s -O2 | llc -mtriple=x86_64-apple-darwin | FileCheck -check-prefix=DARWIN-OPT %s
; The dag combiner should fold together (x&127)|(y&16711680) -> (x|y)&c1
; in this case.

@ -1,5 +1,6 @@
; RUN: opt < %s -std-compile-opts | llc
; XFAIL: *
; ClamAV local: no opt
; RUNX: opt < %s -std-compile-opts | llc
; RUN: true
; ModuleID = 'block12.c'
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i686-apple-darwin8"

@ -1,9 +1,10 @@
; RUN: opt < %s -std-compile-opts | llc > %t
; RUN: grep 2147027116 %t | count 3
; RUN: grep 2147228864 %t | count 3
; RUN: grep 2146502828 %t | count 3
; RUN: grep 2143034560 %t | count 3
; XFAIL: *
; CLAMAV local: no opt
; RUNX: opt < %s -std-compile-opts | llc > %t
; RUNX: grep 2147027116 %t | count 3
; RUNX: grep 2147228864 %t | count 3
; RUNX: grep 2146502828 %t | count 3
; RUNX: grep 2143034560 %t | count 3
; RUN: true
; Compile time conversions of NaNs.
; ModuleID = 'nan2.c'
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"

@ -9,6 +9,6 @@
; CHECK: .globl x
; CHECK: x:
; CHECK: .quad 3
; CHECK: .quad ((0+1)&4294967295)*3
@x = global i64 mul (i64 3, i64 ptrtoint (i2* getelementptr (i2* null, i64 1) to i64))

@ -1,6 +1,8 @@
; RUN: opt < %s -scalarrepl -instcombine | \
; RUN: llc -march=x86 -mcpu=yonah | not grep sub.*esp
; XFAIL: *
; CLAMAV-local: no opt
; RUNX: opt < %s -scalarrepl -instcombine | \
; RUNX: llc -march=x86 -mcpu=yonah | not grep sub.*esp
; RUN: true
;
; This checks that various insert/extract idiom work without going to the
; stack.

@ -1,5 +1,6 @@
; RUN: llvm-as %s -o %t.bc
; RUN: lli %t.bc > /dev/null
; XFAIL: *
@.LC0 = internal global [10 x i8] c"argc: %d\0A\00" ; <[10 x i8]*> [#uses=1]

@ -1,4 +1,5 @@
; RUN: llvm-as < %s | lli - test
; XFAIL: *
declare i32 @puts(i8*)

@ -1,5 +1,6 @@
; RUN: llvm-as %s -o %t.bc
; RUN: lli %t.bc > /dev/null
; XFAIL: *
;
; Regression Test: EnvironmentTest.ll

@ -1,5 +1,6 @@
; RUN: llvm-as %s -o %t.bc
; RUN: lli %t.bc > /dev/null
; XFAIL: *
@.LC0 = internal global [12 x i8] c"Hello World\00" ; <[12 x i8]*> [#uses=1]

@ -1,5 +1,6 @@
; RUN: llvm-as %s -o %t.bc
; RUN: lli %t.bc > /dev/null
; XFAIL: *
@X = global i32 7 ; <i32*> [#uses=0]
@msg = internal global [13 x i8] c"Hello World\0A\00" ; <[13 x i8]*> [#uses=1]

@ -1,4 +1,5 @@
; RUN: llvm-as < %s | lli -disable-lazy-compilation=false
; XFAIL: *
define i32 @main() nounwind {
entry:

@ -1,5 +1,7 @@
; RUN: llvm-as %s -o %t.bc
; RUN: lli %t.bc > /dev/null
; ??
; XFAIL: *
define double @test(double* %DP, double %Arg) {
%D = load double* %DP ; <double> [#uses=1]

@ -1,5 +1,7 @@
; RUN: llvm-as %s -o %t.bc
; RUN: lli %t.bc > /dev/null
; CLAMAV-local: no external funcs
; XFAIL: *
define i32 @main() {
%X = malloc i32 ; <i32*> [#uses=1]

@ -0,0 +1,13 @@
#!/bin/bash
mkdir -p llvm/Release/bin
mkdir -p llvm/Debug/bin
cp lli llc llvm-as not count FileCheck tblgen llvm-dis llvm/Release/bin/
cp lli llc llvm-as not count FileCheck tblgen llvm-dis llvm/Debug/bin/
$GMAKE -v || { echo "GNU make not found, skipping LLVM tests"; exit 77; }
python -V || { echo "Python not found, skipping LLVM tests"; exit 77; }
python <<EOF
import sys
if sys.hexversion < 0x2050000: sys.exit(1)
EOF
test $? -eq 0 || { echo "Python version older than 2.5, skipping LLVM tests"; exit 77; }
exec $GMAKE -C llvm check-lit TESTSUITE="CodeGen ExecutionEngine Integer TableGen Verifier"

@ -1,7 +0,0 @@
#!/bin/bash
mkdir -p llvm/Release/bin
mkdir -p llvm/Debug/bin
cp lli llc llvm-as not count FileCheck tblgen llvm-dis llvm/Release/bin/
cp lli llc llvm-as not count FileCheck tblgen llvm-dis llvm/Debug/bin/
exec $GMAKE -C llvm check-lit TESTSUITE="CodeGen ExecutionEngine Integer TableGen Verifier"

@ -155,6 +155,22 @@
Name="Source Files"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath="..\libclamav\c++\llvm\lib\CodeGen\MachineModuleInfoImpls.cpp"
>
</File>
<File
RelativePath="..\libclamav\c++\llvm\lib\CodeGen\TargetLoweringObjectFileImpl.cpp"
>
</File>
<File
RelativePath="..\libclamav\c++\llvm\lib\MC\MCSectionMachO.cpp"
>
</File>
<File
RelativePath="..\libclamav\c++\llvm\lib\CodeGen\MachineCSE.cpp"
>
</File>
<File
RelativePath="..\libclamav\c++\llvm\lib\CodeGen\OptimizePHIs.cpp"
>

@ -387,10 +387,6 @@
RelativePath="..\libclamav\c++\llvm\lib\MC\MCSectionELF.cpp"
>
</File>
<File
RelativePath="..\libclamav\c++\llvm\lib\MC\MCSectionMachO.cpp"
>
</File>
<File
RelativePath="..\libclamav\c++\llvm\lib\MC\MCSymbol.cpp"
>

@ -154,15 +154,19 @@
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath="..\libclamav\c++\llvm\lib\Target\X86\X86MCCodeEmitter.cpp"
RelativePath="..\libclamav\c++\llvm\lib\Target\X86\X86AsmBackend.cpp"
>
</File>
<File
RelativePath="..\libclamav\c++\llvm\lib\Target\X86\X86MCTargetExpr.cpp"
RelativePath="..\libclamav\c++\llvm\lib\MC\TargetAsmBackend.cpp"
>
</File>
<File
RelativePath="..\libclamav\c++\llvm\lib\CodeGen\MachineModuleInfoImpls.cpp"
RelativePath="..\libclamav\c++\llvm\lib\Target\X86\X86MCCodeEmitter.cpp"
>
</File>
<File
RelativePath="..\libclamav\c++\llvm\lib\Target\X86\X86MCTargetExpr.cpp"
>
</File>
<File

@ -493,7 +493,7 @@
/* #undef USE_SYSLOG */
/* Version number of package */
#define VERSION "devel-r5076-23977-g44d98e9"
#define VERSION "devel-r5076-24037-gd4b26a8"
/* Version suffix for package */
#define VERSION_SUFFIX ""

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Keyword="Win32Proj"
Name="libclamavcxx"
ProjectGUID="{F5DF01F6-8CB6-4C27-8DA8-2379323B31E7}"
ProjectType="Visual C++"
RootNamespace="libclamavcxx"
Keyword="Win32Proj"
TargetFrameworkVersion="196613"
Version="9.00"
>
<Platforms>
<Platform
@ -17,11 +17,11 @@
</ToolFiles>
<Configurations>
<Configuration
CharacterSet="1"
ConfigurationType="4"
IntermediateDirectory="$(SolutionDir)build\$(ProjectName)\$(ConfigurationName)"
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(SolutionDir)build\$(ProjectName)\$(ConfigurationName)"
ConfigurationType="4"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
@ -39,17 +39,17 @@
Name="VCMIDLTool"
/>
<Tool
AdditionalIncludeDirectories="&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)..\libclamav\c++\llvm\include&quot;;&quot;$(SolutionDir)llvmbuild\include&quot;;&quot;$(SolutionDir)..\libclamav&quot;;&quot;$(SolutionDir)compat&quot;;&quot;$(SolutionDir)..&quot;;&quot;$(SolutionDir)3rdparty\pthreads&quot;;&quot;$(SolutionDir)3rdparty\zlib&quot;"
BasicRuntimeChecks="3"
DebugInformationFormat="3"
DisableSpecificWarnings="4146;4503;4996;4800;4244;4624;4355;4715;4180;4345;4224;4351"
MinimalRebuild="true"
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)..\libclamav\c++\llvm\include&quot;;&quot;$(SolutionDir)llvmbuild\include&quot;;&quot;$(SolutionDir)..\libclamav&quot;;&quot;$(SolutionDir)compat&quot;;&quot;$(SolutionDir)..&quot;;&quot;$(SolutionDir)3rdparty\pthreads&quot;;&quot;$(SolutionDir)3rdparty\zlib&quot;"
PreprocessorDefinitions="__STDC_LIMIT_MACROS;__STDC_CONSTANT_MACROS;_CRT_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CRT_NONSTDC_NO_WARNINGS;_SCl_SECURE_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;HAVE_CONFIG_H;_BIND_TO_CURRENT_VCLIBS_VERSION=1"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
DisableSpecificWarnings="4146;4503;4996;4800;4244;4624;4355;4715;4180;4345;4224;4351"
/>
<Tool
Name="VCManagedResourceCompilerTool"
@ -80,11 +80,11 @@
/>
</Configuration>
<Configuration
CharacterSet="1"
ConfigurationType="4"
IntermediateDirectory="$(SolutionDir)build\$(ProjectName)\$(ConfigurationName)"
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(SolutionDir)build\$(ProjectName)\$(ConfigurationName)"
ConfigurationType="4"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
@ -103,18 +103,18 @@
Name="VCMIDLTool"
/>
<Tool
AdditionalIncludeDirectories="&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)..\libclamav\c++\llvm\include&quot;;&quot;$(SolutionDir)llvmbuild\include&quot;;&quot;$(SolutionDir)..\libclamav&quot;;&quot;$(SolutionDir)compat&quot;;&quot;$(SolutionDir)..&quot;;&quot;$(SolutionDir)3rdparty\pthreads&quot;;&quot;$(SolutionDir)3rdparty\zlib&quot;"
DebugInformationFormat="0"
DisableSpecificWarnings="4146;4503;4996;4800;4244;4624;4355;4715;4180;4345;4224;4351"
EnableFunctionLevelLinking="false"
EnableIntrinsicFunctions="true"
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
WholeProgramOptimization="false"
AdditionalIncludeDirectories="&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)..\libclamav\c++\llvm\include&quot;;&quot;$(SolutionDir)llvmbuild\include&quot;;&quot;$(SolutionDir)..\libclamav&quot;;&quot;$(SolutionDir)compat&quot;;&quot;$(SolutionDir)..&quot;;&quot;$(SolutionDir)3rdparty\pthreads&quot;;&quot;$(SolutionDir)3rdparty\zlib&quot;"
PreprocessorDefinitions="NDEBUG;__STDC_LIMIT_MACROS;__STDC_CONSTANT_MACROS;_CRT_SECURE_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CRT_NONSTDC_NO_WARNINGS;_SCl_SECURE_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;HAVE_CONFIG_H;_BIND_TO_CURRENT_VCLIBS_VERSION=1"
RuntimeLibrary="2"
EnableFunctionLevelLinking="false"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="0"
DisableSpecificWarnings="4146;4503;4996;4800;4244;4624;4355;4715;4180;4345;4224;4351"
WholeProgramOptimization="false"
/>
<Tool
Name="VCManagedResourceCompilerTool"
@ -149,8 +149,8 @@
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
Name="Source Files"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File

Loading…
Cancel
Save