[LLVMdev] Adding ClamAV to the llvm testsuite (long)
evan.cheng at apple.com
Thu Jan 10 11:35:29 PST 2008
On Jan 10, 2008, at 11:28 AM, Evan Cheng wrote:
> We are getting closer.
> 1. In Makefile, all the references to CFLAGS should be CPPFLAGS
> 2. filterdiff.sh uses sed -re. This causes a problem on Mac OS X where
> -E means using extended regular expression, not -r.
> sed: illegal option -- r
> usage: sed script [-Ealn] [-i extension] [file ...]
> sed [-Ealn] [-i extension] [-e script] ... [-f
> script_file] ... [file ...]
> Can this be changed?
Looks like the filter might not work correctly for all platforms (at
least that appears to be the case on Mac OS X). Can we simply disable
those debug outputs?
> 3. This triggers a optimizer bug:
> /Users/echeng/LLVM/llvm/Release/bin/opt -std-compile-opts -time-passes
> put/clamscan.linked.bc.info Output/clamscan.linked.rbc -o Output/
> clamscan.linked.bc -f
> Assertion failed: (getLoopLatch() && "Loop latch is missing"),
> function verifyLoop, file /Volumes/Muggles/LLVM/llvm/include/llvm/
> Analysis/LoopInfo.h, line 517.
> I'll file a bug on this.
> On Jan 10, 2008, at 2:41 AM, Török Edwin wrote:
>> Török Edwin wrote:
>>> Yes, I have uploaded the .tar.gz here:
>>> [inputs dir contains some symlink, place ClamAV dir in
>>> llvm/projects/llvm-test/MultiSource/Applications to make
>>> links point to right place]
>> Because llvm bug #1730 got fixed, this testcase can run under with
>> JIT on x86-64 :).
>> I have attached the updated filterdiff.sh script (JIT has extra file
>> descriptor open), and now all tests pass.
>> I've also uploaded the new tarball here:
>> TEST-PASS: compile /MultiSource/Applications/ClamAV/clamscan
>> TEST-RESULT-compile: Total Execution Time: 6.0010 seconds (6.7158
>> TEST-RESULT-compile: 1728712 Output/clamscan.llvm.bc
>> TEST-RESULT-nat-time: program 12.880000
>> TEST-PASS: llc /MultiSource/Applications/ClamAV/clamscan
>> TEST-RESULT-llc: Total Execution Time: 7.3758 seconds (7.7852 wall
>> TEST-RESULT-llc-time: program 13.940000
>> TEST-PASS: jit /MultiSource/Applications/ClamAV/clamscan
>> TEST-RESULT-jit-time: program 18.320000
>> TEST-PASS: cbe /MultiSource/Applications/ClamAV/clamscan
>> TEST-RESULT-cbe-time: program 12.750000
>> Best regards,
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev