[llvm-commits] CVS: nightlytest-serverside/NightlyTestAccept.cgi
Changes in directory nightlytest-serverside: NightlyTestAccept.cgi updated: 1.19 -> 1.20 --- Log message: Clarified the createnight function. If anything is going to fail its that function. Wrote a Difference function that gets the difference between a list of two tests. Added differences from previous day in the nightly test results email. --- Diffs of the changes: (+158 -34) NightlyTestAccept.cgi | 192 +- 1 files changed, 158 insertions(+), 34 deletions(-) Index: nightlytest-serverside/NightlyTestAccept.cgi diff -u nightlytest-serverside/NightlyTestAccept.cgi:1.19 nightlytest-serverside/NightlyTestAccept.cgi:1.20 --- nightlytest-serverside/NightlyTestAccept.cgi:1.19 Wed Jul 19 12:54:32 2006 +++ nightlytest-serverside/NightlyTestAccept.cgiWed Jul 19 20:23:44 2006 @@ -4,31 +4,31 @@ # from the llvm NightlyTest.pl script. It is just a CGI script that takes input by the # POST method. After this it parses the information and places it into the database. # -## + use CGI qw(:standard); use DBI; -## + # # Important variables # -## + my $DATABASE="nightlytestresults"; my $LOGINNAME="llvm"; my $PASSWORD="ll2002vm"; -## + # # Connecting to the database # -## + my $dbh = DBI->connect("DBI:mysql:$DATABASE",$LOGINNAME,$PASSWORD); -## + # # Some methods to help the process # -## + #~ #~ sub ChangeDir { # directory, logical name @@ -95,6 +95,34 @@ #~~ # +# Difference: returns a list of lines that are in the first value but not +# in the second +# +#~~ +sub Difference{ + $one = $_[0]; + $two = $_[1]; + + @ONE = split "\n", $one; + @TWO = split "\n", $two; + + my %hash_of_diff=(); + foreach $x (@TWO){ + $hash_of_diff{$x}=1; + } + + $result=""; + foreach $x (@ONE){ + if($hash_of_diff{$x}!=1){ + $result.="$x\n"; + } + } + + chomp $result; + return $result; +} +#~~ +# # mysql> describe machine; # +---+--+--+-+-++ # | Field | Type | Null | Key | Default | Extra | @@ -196,21 +224,95 @@ sub CreateNight{ -for($x=0; $x<20; $x++){ +for($x=0; $x<@_; $x++){ $_[$x]="" unless $_[$x]; } - + +$y=0; +$machine_id=$_[$y]; +$y++; +$db_date=$_[$y]; +$y++; +$buildstatus=$_[$y]; +$y++; +$configtime_cpu=$_[$y]; +$y++; +$configtime_wall=$_[$y]; +$y++; +$cvscheckouttime_cpu=$_[$y]; +$y++; +$cvscheckouttime_wall=$_[$y]; +$y++; +$buildtime_cpu=$_[$y]; +$y++; +$buildtime_wall=$_[$y]; +$y++; +$dejagnutime_cpu=$_[$y]; +$y++; +$dejagnutime_wall=$_[$y]; +$y++; +$warnings=$_[$y]; +$y++; +$warnings_added=$_[$y]; +$y++; +$warnings_removed=$_[$y]; +$y++; +$dejagnu_exp_passes=$_[$y]; +$y++; +$dejagnu_unexp_failures=$_[$y]; +$y++; +$dejagnu_exp_failures=$_[$y]; +$y++; +$all_tests=$_[$y]; +$y++; +$passing_tests=$_[$y]; +$y++; +$unexpfail_tests=$_[$y]; +$y++; +$expfail_tests=$_[$y]; +$y++; +$newly_passing_tests=$_[$y]; +$y++; +$newly_failing_tests=$_[$y]; +$y++; +$new_tests=$_[$y]; +$y++; +$removed_tests=$_[$y]; +$y++; +$cvsaddedfiles=$_[$y]; +$y++; +$cvsremovedfiles=$_[$y]; +$y++; +$cvsmodifiedfiles=$_[$y]; +$y++; +$cvsusercommitlist=$_[$y]; +$y++; +$cvsuserupdatelist=$_[$y]; +$y++; + + +
[llvm-commits] CVS: llvm/lib/Target/X86/README.txt
Changes in directory llvm/lib/Target/X86: README.txt updated: 1.119 -> 1.120 --- Log message: New entry. --- Diffs of the changes: (+25 -0) README.txt | 25 + 1 files changed, 25 insertions(+) Index: llvm/lib/Target/X86/README.txt diff -u llvm/lib/Target/X86/README.txt:1.119 llvm/lib/Target/X86/README.txt:1.120 --- llvm/lib/Target/X86/README.txt:1.119Wed Jul 19 01:06:24 2006 +++ llvm/lib/Target/X86/README.txt Wed Jul 19 16:29:30 2006 @@ -709,3 +709,28 @@ JIT should resolve __cxa_atexit on Mac OS X. In a non-jit environment, the symbol is a dynamically resolved by the linker. + +//===-===// + +u32 to float conversion improvement: + +float uint32_2_float( unsigned u ) { + float fl = (int) (u & 0x); + float fh = (int) (u >> 16); + fh *= 0x1.0p16f; + return fh + fl; +} + +subl$0x04,%esp +0003movl0x08(%esp,1),%eax +0007movl%eax,%ecx +0009shrl$0x10,%ecx +000ccvtsi2ss%ecx,%xmm0 +0010andl$0x,%eax +0015cvtsi2ss%eax,%xmm1 +0019mulss 0x0078,%xmm0 +0021addss %xmm1,%xmm0 +0025movss %xmm0,(%esp,1) +002aflds(%esp,1) +002daddl$0x04,%esp +0030ret ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/X86/X86RegisterInfo.cpp
Changes in directory llvm/lib/Target/X86: X86RegisterInfo.cpp updated: 1.160 -> 1.161 --- Log message: Tidy up a few things. --- Diffs of the changes: (+36 -20) X86RegisterInfo.cpp | 56 +--- 1 files changed, 36 insertions(+), 20 deletions(-) Index: llvm/lib/Target/X86/X86RegisterInfo.cpp diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.160 llvm/lib/Target/X86/X86RegisterInfo.cpp:1.161 --- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.160 Wed Jul 19 12:53:32 2006 +++ llvm/lib/Target/X86/X86RegisterInfo.cpp Wed Jul 19 14:32:06 2006 @@ -199,10 +199,15 @@ //===--===// namespace { + /// TableEntry - Maps the 'from' opcode to a fused form of the 'to' opcode. + /// struct TableEntry { -unsigned from; -unsigned to; -unsigned make; +unsigned from; // Original opcode. +unsigned to;// New opcode. +unsigned make; // Form of make required to produce the +// new instruction. + +// less operators used by STL search. bool operator<(const TableEntry &TE) const { return from < TE.from; } friend bool operator<(const TableEntry &TE, unsigned V) { return TE.from < V; @@ -213,20 +218,26 @@ }; } +/// TableIsSorted - Return true if the table is in 'from' opcode order. +/// static bool TableIsSorted(const TableEntry *Table, unsigned NumEntries) { - for (unsigned i = 0; i != NumEntries-1; ++i) -if (!(Table[i] < Table[i+1])) return false; + for (unsigned i = 1; i != NumEntries; ++i) +if (!(Table[i-1] < Table[i])) { + std::cerr << "Entries out of order" << Table[i-1].from +<< " " << Table[i].from << "\n"; + return false; +} return true; } -static int Lookup(const TableEntry *Table, unsigned N, unsigned Opcode, - unsigned &make) { +/// TableLookup - Return the table entry matching the specified opcode. +/// Otherwise return NULL. +static const TableEntry *TableLookup(const TableEntry *Table, unsigned N, +unsigned Opcode) { const TableEntry *I = std::lower_bound(Table, Table+N, Opcode); - if (I != Table+N && I->from == Opcode) { -make = I->make; -return I->to; - } - return -1; + if (I != Table+N && I->from == Opcode) +return I; + return NULL; } #define ARRAY_SIZE(TABLE) \ @@ -237,9 +248,11 @@ #else #define ASSERT_SORTED(TABLE) \ { static bool TABLE##Checked = false; \ -if (!TABLE##Checked) \ +if (!TABLE##Checked) {\ assert(TableIsSorted(TABLE, ARRAY_SIZE(TABLE)) && \ "All lookup tables must be sorted for efficient access!"); \ + TABLE##Checked = true; \ +} \ } #endif @@ -474,9 +487,9 @@ { X86::CMOVNS16rr, X86::CMOVNS16rm, makeRMInst }, { X86::CMOVNS32rr, X86::CMOVNS32rm, makeRMInst }, { X86::CMOVP16rr, X86::CMOVP16rm, makeRMInst }, + { X86::CMOVP32rr, X86::CMOVP32rm, makeRMInst }, { X86::CMOVS16rr, X86::CMOVS16rm, makeRMInst }, { X86::CMOVS32rr, X86::CMOVS32rm, makeRMInst }, - { X86::CMOVP32rr, X86::CMOVP32rm, makeRMInst }, { X86::CMP16ri, X86::CMP16mi, makeMIInst }, { X86::CMP16ri8,X86::CMP16mi8,makeMIInst }, { X86::CMP16rr, X86::CMP16rm, makeRMInst }, @@ -660,23 +673,26 @@ { X86::XORPDrr, X86::XORPDrm, makeRMInst }, { X86::XORPSrr, X86::XORPSrm, makeRMInst } }; +ASSERT_SORTED(OpcodeTable); OpcodeTablePtr = OpcodeTable; OpcodeTableSize = ARRAY_SIZE(OpcodeTable); } // If table selected if (OpcodeTablePtr) { -// Opcode to translate +// Opcode to fuse unsigned fromOpcode = MI->getOpcode(); -// Type of make to use -unsigned make; // Lookup fromOpcode in table -int toOpcode = Lookup(OpcodeTablePtr, OpcodeTableSize, fromOpcode, make); +const TableEntry *entry = TableLookup(OpcodeTablePtr, OpcodeTableSize, + fromOpcode); // If opcode found in table -if (toOpcode != -1) { +if (entry) { + // Fused opcode + unsigned toOpcode = entry->to; + // Make new instruction - switch (make) { + switch (entry->make) { case makeM0Inst: return MakeM0Inst(toOpcode, FrameIndex, MI); case makeMIInst: return Make
[llvm-commits] CVS: llvm/lib/Target/X86/X86FloatingPoint.cpp
Changes in directory llvm/lib/Target/X86: X86FloatingPoint.cpp updated: 1.51 -> 1.52 --- Log message: Do once flag never set to true. --- Diffs of the changes: (+3 -1) X86FloatingPoint.cpp |4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) Index: llvm/lib/Target/X86/X86FloatingPoint.cpp diff -u llvm/lib/Target/X86/X86FloatingPoint.cpp:1.51 llvm/lib/Target/X86/X86FloatingPoint.cpp:1.52 --- llvm/lib/Target/X86/X86FloatingPoint.cpp:1.51 Wed Jun 28 18:27:49 2006 +++ llvm/lib/Target/X86/X86FloatingPoint.cppWed Jul 19 14:33:08 2006 @@ -312,9 +312,11 @@ #else #define ASSERT_SORTED(TABLE) \ { static bool TABLE##Checked = false; \ -if (!TABLE##Checked) \ +if (!TABLE##Checked) {\ assert(TableIsSorted(TABLE, ARRAY_SIZE(TABLE)) && \ "All lookup tables must be sorted for efficient access!"); \ + TABLE##Checked = true; \ +} \ } #endif ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/docs/FAQ.html
Changes in directory llvm/docs: FAQ.html updated: 1.36 -> 1.37 --- Log message: Answer the FAQ: "can llvm convert C++ code to C?" --- Diffs of the changes: (+58 -1) FAQ.html | 59 ++- 1 files changed, 58 insertions(+), 1 deletion(-) Index: llvm/docs/FAQ.html diff -u llvm/docs/FAQ.html:1.36 llvm/docs/FAQ.html:1.37 --- llvm/docs/FAQ.html:1.36 Wed Apr 26 16:03:17 2006 +++ llvm/docs/FAQ.html Wed Jul 19 13:19:59 2006 @@ -79,6 +79,8 @@ How can I disable all optimizations when compiling code using the LLVM GCC front end? +Can I use LLVM to convert C++ code to C code? + @@ -501,6 +503,61 @@ + + + +Can I use LLVM to convert C++ code to C code? + + + + +Yes, you can use LLVM to convert code from any language LLVM supports to C. +Note that the generated C code will be very low level (all loops are lowered +to gotos, etc) and not very pretty (comments are stripped, original source +formatting is totally lost, variables are renamed, expressions are regrouped), +so this may not be what you're looking for. However, this is a good way to add +C++ support for a processor that does not otherwise have a C++ compiler. + + +Use commands like this: + + +Compile your program as normal with llvm-g++: + +$ llvm-g++ x.cpp -o program + +or: + + + llvm-g++ a.cpp -c + llvm-g++ b.cpp -c + llvm-g++ a.o b.o -o program + + +With llvm-gcc3, this will generate program and program.bc. The .bc file is +the LLVM version of the program all linked together. + +Convert the LLVM code to C code, using the LLC tool with the C +backend: + +$ llc -march=c program.bc -o program.c + +Finally, compile the c file: + +$ cc x.c + + + +Note that, by default, the C backend does not support exception handling. +If you want/need it for a certain program, you can enable it by passing +"-enable-correct-eh-support" to the llc program. The resultant code will +use setjmp/longjmp to implement exception support that is correct but +relatively slow. + + + + + Questions about code generated by the GCC front-end @@ -614,7 +671,7 @@ src="http://www.w3.org/Icons/valid-html401"; alt="Valid HTML 4.01!"> http://llvm.org";>LLVM Compiler Infrastructure - Last modified: $Date: 2006/04/26 21:03:17 $ + Last modified: $Date: 2006/07/19 18:19:59 $ ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/testresults/index.html
Changes in directory llvm-www/testresults: index.html updated: 1.42 -> 1.43 --- Log message: Point to the new tester. --- Diffs of the changes: (+2 -61) index.html | 63 + 1 files changed, 2 insertions(+), 61 deletions(-) Index: llvm-www/testresults/index.html diff -u llvm-www/testresults/index.html:1.42 llvm-www/testresults/index.html:1.43 --- llvm-www/testresults/index.html:1.42Sat Feb 25 12:37:42 2006 +++ llvm-www/testresults/index.html Wed Jul 19 12:57:58 2006 @@ -6,67 +6,8 @@ -This directory contains test results which are automatically generated every -night on the following platforms. This system is still under development, but -will eventually feature an automatic "blame" system, which emails people who -break test cases. This is intended to track, over time, the CVS repository, -test suite conformance, and performance of code generated by the compiler. - - -Note that the results of these testers are summarized and sent to the http://mail.cs.uiuc.edu/pipermail/llvm-testresults/";>llvm-testresults -mailing list. - - -Alpha - - -http://fenris.cs.uiuc.edu/llvm-alpha/";>Linux (Single 21264 EV67 -633 MHz) -- release build - -http://www.acm.uiuc.edu/~njriley/llvm-alpha/";>Linux (Dual 21264 -EV6 500 MHz) -- debug build - - -IA-64 - - -http://www.toolchain.org/~ahs3/Sites/ia64";>Debian GNU/Linux -unstable, dual Itanium2(tm) 1.5GHz -- debug build - -http://kinoko.c.u-tokyo.ac.jp/~builddonkey/ia64";>Debian GNU/Linux -unstable, dual Itanium 2 1.6GHz -- debug build - - -PowerPC - - -http://persephone.cs.uiuc.edu/~oscar/nightlytest/";>Mac OS X 10.4 -"Tiger" on PowerPC G5 (dual 1.8Ghz CPU) -- debug build - - -SPARC - - -http://llvm.cs.uiuc.edu/testresults/SPARC/index.html";>SunOS 5.8 on -Sun Fire V240 (dual 1Ghz CPU) -- debug build ("V8" backend) - - -X86 - - -Linux (Dual P4 Xeon @ 3.06GHz) -- debug build - -http://npt.cc.rsu.ru/testresults-X86-FreeBSD/index.html";>FreeBSD 6.0BETA (Pentium -3 @ 1.0Ghz) -- debug build - -http://kinoko.c.u-tokyo.ac.jp/~builddonkey/";>FreeBSD-CURRENT -(Single Pentium M @ 2.3GHz) -- release build - -http://www.toolchain.org/~ahs3/Sites/ia32";>Debian GNU/Linux -unstable, dual Xeon(TM) 3.20GHz -- debug build - - +This page is obsolete, please see the new http://llvm.org/nightlytest/";>nightly tester page. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/OldNews.html
Changes in directory llvm-www: OldNews.html updated: 1.3 -> 1.4 --- Log message: Wow this is old news :) --- Diffs of the changes: (+1 -1) OldNews.html |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm-www/OldNews.html diff -u llvm-www/OldNews.html:1.3 llvm-www/OldNews.html:1.4 --- llvm-www/OldNews.html:1.3 Sat Jul 16 00:43:39 2005 +++ llvm-www/OldNews.html Wed Jul 19 12:52:31 2006 @@ -36,7 +36,7 @@ Jan 22, 2003 - Implemented a new - automated nightly testing + automated nightly testing framework. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: nightlytest-serverside/NightlyTestAccept.cgi
Changes in directory nightlytest-serverside: NightlyTestAccept.cgi updated: 1.18 -> 1.19 --- Log message: Added mysql describe table printouts to the top of functions that use those tables. Changed the format of the test result email to reflect what Chris asked for. This is not complete but is a start. Made changes to how passing tests and failing tests are organized in the database. --- Diffs of the changes: (+85 -37) NightlyTestAccept.cgi | 122 ++ 1 files changed, 85 insertions(+), 37 deletions(-) Index: nightlytest-serverside/NightlyTestAccept.cgi diff -u nightlytest-serverside/NightlyTestAccept.cgi:1.18 nightlytest-serverside/NightlyTestAccept.cgi:1.19 --- nightlytest-serverside/NightlyTestAccept.cgi:1.18 Tue Jul 18 12:13:44 2006 +++ nightlytest-serverside/NightlyTestAccept.cgiWed Jul 19 12:54:32 2006 @@ -95,6 +95,22 @@ #~~ # +# mysql> describe machine; +# +---+--+--+-+-++ +# | Field | Type | Null | Key | Default | Extra | +# +---+--+--+-+-++ +# | id| int(11) | | PRI | NULL| auto_increment | +# | uname | text | | | || +# | hardware | text | | | || +# | os| text | | | || +# | name | text | | | || +# | nickname | tinytext | YES | | NULL|| +# | gcc | text | YES | | NULL|| +# | directory | text | YES | | NULL|| +# +---+--+--+-+-++ +# 8 rows in set (0.00 sec) +# +# # Creates an entry in the machine table in the database # #~~ @@ -129,38 +145,41 @@ #~~ #Since this is ugly, iv included an example call and a view of the table. # -#+-++--+-+-++ -#| Field | Type | Null | Key | Default | Extra | -#+-++--+-+-++ -#| id | int(11)| NO | PRI | NULL| auto_increment | -#| machine | int(11)| NO | | || -#| added | datetime | YES | | NULL|| -#| buildstatus | tinytext | YES | | NULL|| -#| configuretime_cpu | double | YES | | NULL|| -#| configuretime_wall | double | YES | | NULL|| -#| getcvstime_cpu | double | YES | | NULL|| -#| getcvstime_wall | double | YES | | NULL|| -#| buildtime_cpu | double | YES | | NULL|| -#| buildtime_wall | double | YES | | NULL|| -#| dejagnutime_cpu | double | YES | | NULL|| -#| dejagnutime_wall| double | YES | | NULL|| -#| warnings| mediumtext | YES | | NULL|| -#| warnings_added | text | YES | | NULL|| -#| warnings_removed| text | YES | | NULL|| -#| teststats_exppass | int(11)| YES | | NULL|| -#| teststats_unexpfail | int(11)| YES | | NULL|| -#| teststats_expfail | int(11)| YES | | NULL|| -#| unexpfail_tests | text | YES | | NULL|| -#| newly_passing_tests | text | YES | | NULL|| -#| newly_failing_tests | text | YES | | NULL|| -#| new_tests | text | YES | | NULL|| -#| removed_tests | text | YES | | NULL|| -#| cvs_added | text | YES | | NULL|| -#| cvs_removed | text | YES | | NULL|| -#| cvs_modified| text | YES | | NULL|| -#| cvs_usersadd| text | YES | | NULL|| -#| cvs_usersco | text | YES | | NULL|| -#+-++--+-+-++ +# +-++--+-+-++ +# | Field | Type | Null | Key | Default | Extra | +# +-++--+-+-++ +# | id | int(11)|
[llvm-commits] CVS: llvm-www/OpenProjects.html
Changes in directory llvm-www: OpenProjects.html updated: 1.15 -> 1.16 --- Log message: Point to the new nightly tester --- Diffs of the changes: (+2 -2) OpenProjects.html |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm-www/OpenProjects.html diff -u llvm-www/OpenProjects.html:1.15 llvm-www/OpenProjects.html:1.16 --- llvm-www/OpenProjects.html:1.15 Tue May 9 22:55:15 2006 +++ llvm-www/OpenProjects.html Wed Jul 19 12:53:23 2006 @@ -161,7 +161,7 @@ Find benchmarks either using our http://llvm.org/testresults/";>test results or on your own, +href="http://llvm.org/nightlytest/";>test results or on your own, where LLVM code generators do not produce optimal code or simply where another compiler produces better code. Try to minimize the test case that demonstrates the issue. Then, either http://llvm.org/bugs/";>submit a @@ -374,7 +374,7 @@ src="http://www.w3.org/Icons/valid-html401"; alt="Valid HTML 4.01!"> http://llvm.org";>LLVM Compiler Infrastructure - Last modified: $Date: 2006/05/10 03:55:15 $ + Last modified: $Date: 2006/07/19 17:53:23 $ ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/utils/NewNightlyTest.pl
Changes in directory llvm/utils: NewNightlyTest.pl updated: 1.15 -> 1.16 --- Log message: Removed the portion that determines which tests are newly passing/failing because we no longer keep the previos days list on the testing machines. Added functionality to send lists of all tests, all passing tests, all failing tests all unexpected failing tests. --- Diffs of the changes: (+99 -78) NewNightlyTest.pl | 177 ++ 1 files changed, 99 insertions(+), 78 deletions(-) Index: llvm/utils/NewNightlyTest.pl diff -u llvm/utils/NewNightlyTest.pl:1.15 llvm/utils/NewNightlyTest.pl:1.16 --- llvm/utils/NewNightlyTest.pl:1.15 Tue Jul 18 16:21:53 2006 +++ llvm/utils/NewNightlyTest.plWed Jul 19 12:52:51 2006 @@ -798,7 +798,6 @@ " | sort > $Prefix-Tests.txt"; } WriteFile "$Prefix-externalprogramstable.txt", $ExternalProgramsTable; - } ## @@ -808,50 +807,69 @@ # # ## -my ($TestsAdded, $TestsRemoved, $TestsFixed, $TestsBroken) = ("","","",""); +$dejagnu = ReadFile $DejagnuSum; [EMAIL PROTECTED] = split "\n", $dejagnu; -if ($TestError) { -$TestsAdded = "error testing"; -$TestsRemoved = "error testing"; -$TestsFixed = "error testing"; -$TestsBroken = "error testing"; -} else { -my ($RTestsAdded, $RTestsRemoved) = DiffFiles "-Tests.txt"; - -my @RawTestsAddedArray = split '\n', $RTestsAdded; -my @RawTestsRemovedArray = split '\n', $RTestsRemoved; - -my %OldTests = map {GetRegex('TEST-: (.+)', $_)=>$_} -@RawTestsRemovedArray; -my %NewTests = map {GetRegex('TEST-: (.+)', $_)=>$_} -@RawTestsAddedArray; - -foreach $Test (keys %NewTests) { - if (!exists $OldTests{$Test}) { # TestAdded if in New but not old - $TestsAdded = "$TestsAdded$Test\n"; - } else { - if ($OldTests{$Test} =~ /TEST-PASS/) { # Was the old one a pass? - $TestsBroken = "$TestsBroken$Test\n"; # New one must be a failure - } else { - $TestsFixed = "$TestsFixed$Test\n";# No, new one is a pass. - } +my $passes="", +my $fails=""; +my $xfails=""; + +for($x=0; $x<@DEJAGNU; $x++){ + if($DEJAGNU[$x] =~ m/^PASS:/){ + $passes.="$x\n"; + } + elsif($DEJAGNU[$x] =~ m/^FAIL:/){ + $fails.="$x\n"; + } + elsif($DEJAGNU[$x] =~ m/^XFAIL:/){ + $xfails.="$x\n"; } -} -foreach $Test (keys %OldTests) { # TestRemoved if in Old but not New - $TestsRemoved = "$TestsRemoved$Test\n" if (!exists $NewTests{$Test}); -} - -#print "\nTESTS ADDED: \n\n$TestsAdded\n\n" if (length $TestsAdded); -#print "\nTESTS REMOVED:\n\n$TestsRemoved\n\n" if (length $TestsRemoved); -#print "\nTESTS FIXED: \n\n$TestsFixed\n\n" if (length $TestsFixed); -#print "\nTESTS BROKEN: \n\n$TestsBroken\n\n" if (length $TestsBroken); - -#$TestsAdded = AddPreTag $TestsAdded; -#$TestsRemoved = AddPreTag $TestsRemoved; -#$TestsFixed = AddPreTag $TestsFixed; -#$TestsBroken = AddPreTag $TestsBroken; } +# my ($TestsAdded, $TestsRemoved, $TestsFixed, $TestsBroken) = ("","","",""); +# +# if ($TestError) { +# $TestsAdded = "error testing"; +# $TestsRemoved = "error testing"; +# $TestsFixed = "error testing"; +# $TestsBroken = "error testing"; +# } else { +# my ($RTestsAdded, $RTestsRemoved) = DiffFiles "-Tests.txt"; +# +# my @RawTestsAddedArray = split '\n', $RTestsAdded; +# my @RawTestsRemovedArray = split '\n', $RTestsRemoved; +# +# my %OldTests = map {GetRegex('TEST-: (.+)', $_)=>$_} +# @RawTestsRemovedArray; +# my %NewTests = map {GetRegex('TEST-: (.+)', $_)=>$_} +# @RawTestsAddedArray; +# +# foreach $Test (keys %NewTests) { +# if (!exists $OldTests{$Test}) { # TestAdded if in New but not old +# $TestsAdded = "$TestsAdded$Test\n"; +# } else { +# if ($OldTests{$Test} =~ /TEST-PASS/) { # Was the old one a pass? +# $TestsBroken = "$TestsBroken$Test\n"; # New one must be a failure +# } else { +# $TestsFixed = "$TestsFixed$Test\n";# No, new one is a pass. +# } +# } +# } +# foreach $Test (keys %OldTests) { # TestRemoved if in Old but not New +# $TestsRemoved = "$TestsRemoved$Test\n" if (!exists $NewTests{$Test}); +# } +# +# #print "\nTESTS ADDED: \n\n$TestsAdded\n\n" if (length $TestsAdded); +# #print "\nTESTS REMOVED:\n\n$TestsRemoved\n\n" if (length $TestsRemoved); +# #print "\nTESTS FIXED: \n\n$TestsFixed\n\n" if (length $TestsFixed); +# #print "\nTESTS BROKEN: \n\n$TestsBroken\n\n" if (length $TestsBroken); +# +# #$TestsAdded = AddPreTag $T
[llvm-commits] CVS: llvm-www/header.incl
Changes in directory llvm-www: header.incl updated: 1.46 -> 1.47 --- Log message: Point to the new nightly tester. --- Diffs of the changes: (+1 -1) header.incl |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm-www/header.incl diff -u llvm-www/header.incl:1.46 llvm-www/header.incl:1.47 --- llvm-www/header.incl:1.46 Thu Apr 20 02:21:41 2006 +++ llvm-www/header.inclWed Jul 19 12:51:33 2006 @@ -107,7 +107,7 @@ Dev. Resources: doxygen cvsweb - Nightly Tester + Nightly Tester LLVM Bugzilla ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-www/robots.txt
Changes in directory llvm-www: robots.txt updated: 1.3 -> 1.4 --- Log message: Don't spider the nightly tester stuff. --- Diffs of the changes: (+1 -0) robots.txt |1 + 1 files changed, 1 insertion(+) Index: llvm-www/robots.txt diff -u llvm-www/robots.txt:1.3 llvm-www/robots.txt:1.4 --- llvm-www/robots.txt:1.3 Wed May 18 17:55:06 2005 +++ llvm-www/robots.txt Wed Jul 19 12:51:05 2006 @@ -4,3 +4,4 @@ Disallow: /cvsweb Disallow: /stats Disallow: /testresults/X86 +Disallow: /nightlytest ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCInstrInfo.td
Changes in directory llvm/lib/Target/PowerPC: PPCInstrInfo.td updated: 1.239 -> 1.240 --- Log message: bswapped load/store instructions are only availble in indexed addressing form. As such, use xoaddr (indexed only), not xaddr for address selection. This fixes CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll, a crash compiling lencod. --- Diffs of the changes: (+4 -4) PPCInstrInfo.td |8 1 files changed, 4 insertions(+), 4 deletions(-) Index: llvm/lib/Target/PowerPC/PPCInstrInfo.td diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.239 llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.240 --- llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.239 Tue Jul 18 11:33:26 2006 +++ llvm/lib/Target/PowerPC/PPCInstrInfo.td Wed Jul 19 12:15:36 2006 @@ -478,10 +478,10 @@ def LHBRX : XForm_1<31, 790, (ops GPRC:$rD, memrr:$src), "lhbrx $rD, $src", LdStGeneral, - [(set GPRC:$rD, (PPClbrx xaddr:$src,srcvalue:$dummy, i16))]>; + [(set GPRC:$rD, (PPClbrx xoaddr:$src, srcvalue:$sv, i16))]>; def LWBRX : XForm_1<31, 534, (ops GPRC:$rD, memrr:$src), "lwbrx $rD, $src", LdStGeneral, - [(set GPRC:$rD, (PPClbrx xaddr:$src,srcvalue:$dummy, i32))]>; + [(set GPRC:$rD, (PPClbrx xoaddr:$src, srcvalue:$sv, i32))]>; } @@ -538,11 +538,11 @@ []>; def STHBRX: XForm_8<31, 918, (ops GPRC:$rS, memrr:$dst), "sthbrx $rS, $dst", LdStGeneral, - [(PPCstbrx GPRC:$rS, xaddr:$dst, srcvalue:$dummy, i16)]>, + [(PPCstbrx GPRC:$rS, xoaddr:$dst, srcvalue:$dummy, i16)]>, PPC970_DGroup_Cracked; def STWBRX: XForm_8<31, 662, (ops GPRC:$rS, memrr:$dst), "stwbrx $rS, $dst", LdStGeneral, - [(PPCstbrx GPRC:$rS, xaddr:$dst, srcvalue:$dummy, i32)]>, + [(PPCstbrx GPRC:$rS, xoaddr:$dst, srcvalue:$dummy, i32)]>, PPC970_DGroup_Cracked; } let PPC970_Unit = 1 in { // FXU Operations. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll
Changes in directory llvm/test/Regression/CodeGen/PowerPC: 2006-07-19-stwbrx-crash.ll added (r1.1) --- Log message: new testcase --- Diffs of the changes: (+10 -0) 2006-07-19-stwbrx-crash.ll | 10 ++ 1 files changed, 10 insertions(+) Index: llvm/test/Regression/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll:1.1 *** /dev/null Wed Jul 19 12:14:33 2006 --- llvm/test/Regression/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll Wed Jul 19 12:14:23 2006 *** *** 0 --- 1,10 + ; RUN: llvm-as < %s | llc -march=ppc32 + + void %img2buf(int %symbol_size_in_bytes, ushort* %ui16) { + %tmp93 = load ushort* null ; [#uses=1] + %tmp99 = call ushort %llvm.bswap.i16( ushort %tmp93 ) ; [#uses=1] + store ushort %tmp99, ushort* %ui16 + ret void + } + + declare ushort %llvm.bswap.i16(ushort) ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/2006-07-19-ATTAsm.ll
Changes in directory llvm/test/Regression/CodeGen/X86: 2006-07-19-ATTAsm.ll added (r1.1) --- Log message: Regression test for PR834: http://llvm.org/PR834 . --- Diffs of the changes: (+51 -0) 2006-07-19-ATTAsm.ll | 51 +++ 1 files changed, 51 insertions(+) Index: llvm/test/Regression/CodeGen/X86/2006-07-19-ATTAsm.ll diff -c /dev/null llvm/test/Regression/CodeGen/X86/2006-07-19-ATTAsm.ll:1.1 *** /dev/null Wed Jul 19 11:37:25 2006 --- llvm/test/Regression/CodeGen/X86/2006-07-19-ATTAsm.ll Wed Jul 19 11:37:15 2006 *** *** 0 --- 1,51 + ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att + ; PR834 + + target endian = little + target pointersize = 32 + target triple = "i386-unknown-freebsd6.1" + + %llvm.dbg.anchor.type = type { uint, uint } + %llvm.dbg.basictype.type = type { uint, { }*, sbyte*, { }*, uint, ulong, ulong, ulong, uint, uint } + %llvm.dbg.compile_unit.type = type { uint, { }*, uint, sbyte*, sbyte*, sbyte* } + %llvm.dbg.global_variable.type = type { uint, { }*, { }*, sbyte*, sbyte*, { }*, uint, { }*, bool, bool, { }* } + %x = global int 0 ; [#uses=1] + %llvm.dbg.global_variable = internal constant %llvm.dbg.global_variable.type { + uint 327732, + { }* cast (%llvm.dbg.anchor.type* %llvm.dbg.global_variables to { }*), + { }* cast (%llvm.dbg.compile_unit.type* %llvm.dbg.compile_unit to { }*), + sbyte* getelementptr ([2 x sbyte]* %str, int 0, int 0), + sbyte* null, + { }* cast (%llvm.dbg.compile_unit.type* %llvm.dbg.compile_unit to { }*), + uint 1, + { }* cast (%llvm.dbg.basictype.type* %llvm.dbg.basictype to { }*), + bool false, + bool true, + { }* cast (int* %x to { }*) }, section "llvm.metadata" ; <%llvm.dbg.global_variable.type*> [#uses=0] + %llvm.dbg.global_variables = linkonce constant %llvm.dbg.anchor.type { uint 327680, uint 52 }, section "llvm.metadata"; <%llvm.dbg.anchor.type*> [#uses=1] + %llvm.dbg.compile_unit = internal constant %llvm.dbg.compile_unit.type { + uint 327697, + { }* cast (%llvm.dbg.anchor.type* %llvm.dbg.compile_units to { }*), + uint 4, + sbyte* getelementptr ([10 x sbyte]* %str, int 0, int 0), + sbyte* getelementptr ([32 x sbyte]* %str, int 0, int 0), + sbyte* getelementptr ([45 x sbyte]* %str, int 0, int 0) }, section "llvm.metadata"; <%llvm.dbg.compile_unit.type*> [#uses=1] + %llvm.dbg.compile_units = linkonce constant %llvm.dbg.anchor.type { uint 327680, uint 17 }, section "llvm.metadata" ; <%llvm.dbg.anchor.type*> [#uses=1] + %str = internal constant [10 x sbyte] c"testb.cpp\00", section "llvm.metadata"; <[10 x sbyte]*> [#uses=1] + %str = internal constant [32 x sbyte] c"/Sources/Projects/DwarfTesting/\00", section "llvm.metadata" ; <[32 x sbyte]*> [#uses=1] + %str = internal constant [45 x sbyte] c"4.0.1 LLVM (Apple Computer, Inc. build 5400)\00", section "llvm.metadata" ; <[45 x sbyte]*> [#uses=1] + %str = internal constant [2 x sbyte] c"x\00", section "llvm.metadata" ; <[2 x sbyte]*> [#uses=1] + %llvm.dbg.basictype = internal constant %llvm.dbg.basictype.type { + uint 327716, + { }* cast (%llvm.dbg.compile_unit.type* %llvm.dbg.compile_unit to { }*), + sbyte* getelementptr ([4 x sbyte]* %str, int 0, int 0), + { }* null, + uint 0, + ulong 32, + ulong 32, + ulong 0, + uint 0, + uint 5 }, section "llvm.metadata" ; <%llvm.dbg.basictype.type*> [#uses=1] + %str = internal constant [4 x sbyte] c"int\00", section "llvm.metadata" ; <[4 x sbyte]*> [#uses=1] + + implementation ; Functions: ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: nightlytest-serverside/fulltest.php
Changes in directory nightlytest-serverside: fulltest.php updated: 1.3 -> 1.4 --- Log message: Rearranged tables of program tests at the bottom of the page so that the order is now: external tests, multisource tests, singlesource tests. --- Diffs of the changes: (+15 -16) fulltest.php | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) Index: nightlytest-serverside/fulltest.php diff -u nightlytest-serverside/fulltest.php:1.3 nightlytest-serverside/fulltest.php:1.4 --- nightlytest-serverside/fulltest.php:1.3 Fri Jul 7 19:32:18 2006 +++ nightlytest-serverside/fulltest.php Wed Jul 19 11:13:30 2006 @@ -543,12 +543,11 @@ print "\n"; print "\n"; #ending black border around table +/** Multisource table **/ -/** Singlesource table **/ - -print"Singlesource tests:\n"; +print"Multisource tests:\n"; print "\n"; #creating the black border around the table -print "\n"; +print "\n"; print "\t\n"; print "\t\tProgram\n"; $index=0; //here to ensure we dont print %diff for GCC comparisons @@ -572,9 +571,9 @@ } print "\t\t\n"; print "\n"; - print "\n"; + print "\n"; print "{$category_print_array_description[$index]}\n"; - print "?\n"; + print "?\n"; print "\n"; $index++; } @@ -582,7 +581,7 @@ $row_color=1; $count=0; foreach(array_keys($today_results) as $program){ - if(strcmp($today_results["$program"][0],"singlesource")==0){ + if(strcmp($today_results["$program"][0],"multisource")==0){ if($row_color % 2 == 0){ $def_color="white"; } @@ -610,12 +609,15 @@ print "\n"; print "\n"; #ending black border around table +print " | "; +print "\n"; +print "\n"; -/** Multisource table **/ +/** Singlesource table **/ -print"Multisource tests:\n"; +print"Singlesource tests:\n"; print "\n"; #creating the black border around the table -print "\n"; +print "\n"; print "\t\n"; print "\t\tProgram\n"; $index=0; //here to ensure we dont print %diff for GCC comparisons @@ -639,9 +641,9 @@ } print "\t\t\n"; print "\n"; - print "\n"; + print "\n"; print "{$category_print_array_description[$index]}\n"; - print "?\n"; + print "?\n"; print "\n"; $index++; } @@ -649,7 +651,7 @@ $row_color=1; $count=0; foreach(array_keys($today_results) as $program){ - if(strcmp($today_results["$program"][0],"multisource")==0){ + if(strcmp($today_results["$program"][0],"singlesource")==0){ if($row_color % 2 == 0){ $def_color="white"; } @@ -677,9 +679,6 @@ print "\n"; print "\n"; #ending black border around table -print " | "; -print "\n"; -print "\n"; mysql_close($mysql_link); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
Changes in directory llvm/lib/Target/X86: X86ATTAsmPrinter.cpp updated: 1.52 -> 1.53 --- Log message: Bug#834 ICE (crash in code generator?) when building PCH . Missing Darwin check in Intel ATT ASM printer. --- Diffs of the changes: (+5 -3) X86ATTAsmPrinter.cpp |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) Index: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp diff -u llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.52 llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.53 --- llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.52 Fri Jun 23 07:51:53 2006 +++ llvm/lib/Target/X86/X86ATTAsmPrinter.cppWed Jul 19 06:54:50 2006 @@ -26,9 +26,11 @@ /// method to print assembly for each instruction. /// bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) { - // Let PassManager know we need debug information and relay - // the MachineDebugInfo address on to DwarfWriter. - DW.SetDebugInfo(&getAnalysis()); + if (Subtarget->TargetType == X86Subtarget::isDarwin) { +// Let PassManager know we need debug information and relay +// the MachineDebugInfo address on to DwarfWriter. +DW.SetDebugInfo(&getAnalysis()); + } SetupMachineFunction(MF); O << "\n\n"; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-test/SingleSource/Benchmarks/Makefile
Changes in directory llvm-test/SingleSource/Benchmarks: Makefile updated: 1.7 -> 1.8 --- Log message: Undo. Wasn't meant to be checked in. --- Diffs of the changes: (+2 -2) Makefile |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm-test/SingleSource/Benchmarks/Makefile diff -u llvm-test/SingleSource/Benchmarks/Makefile:1.7 llvm-test/SingleSource/Benchmarks/Makefile:1.8 --- llvm-test/SingleSource/Benchmarks/Makefile:1.7 Wed Jul 19 01:03:03 2006 +++ llvm-test/SingleSource/Benchmarks/Makefile Wed Jul 19 02:28:16 2006 @@ -1,6 +1,6 @@ LEVEL = ../.. -#PARALLEL_DIRS=Dhrystone CoyoteBench Shootout Shootout-C++ Stanford McGill \ -# Misc Misc-C++ Misc-C++-EH +PARALLEL_DIRS=Dhrystone CoyoteBench Shootout Shootout-C++ Stanford McGill \ + Misc Misc-C++ Misc-C++-EH PARALLEL_DIRS=Dhrystone CoyoteBench Shootout Shootout-C++ Stanford McGill \ Misc Misc-C++ LDFLAGS += -lm ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits