Changeset 9d6f011 for src/tests


Ignore:
Timestamp:
Mar 8, 2018, 3:38:44 PM (8 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
037c072
Parents:
28bc8c8 (diff), 70969f8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
src/tests
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • src/tests/.expect/literals.x86.txt

    r28bc8c8 r9d6f011  
    522522signed int __main__Fi___1(){
    523523    __attribute__ ((unused)) signed int ___retval_main__i_1;
     524    ((void)0b01101011);
     525    ((void)0b01101011u);
     526    ((void)0b01101011l);
     527    ((void)0b01101011ll);
     528    ((void)0b01101011ul);
     529    ((void)0b01101011lu);
     530    ((void)0b01101011ull);
     531    ((void)0b01101011llu);
     532    ((void)(+0b01101011));
     533    ((void)(+0b01101011u));
     534    ((void)(+0b01101011l));
     535    ((void)(+0b01101011ll));
     536    ((void)(+0b01101011ul));
     537    ((void)(+0b01101011lu));
     538    ((void)(+0b01101011ull));
     539    ((void)(+0b01101011llu));
     540    ((void)(-0b01101011));
     541    ((void)(-0b01101011u));
     542    ((void)(-0b01101011l));
     543    ((void)(-0b01101011ll));
     544    ((void)(-0b01101011ul));
     545    ((void)(-0b01101011lu));
     546    ((void)(-0b01101011ull));
     547    ((void)(-0b01101011llu));
    524548    ((void)01234567);
    525549    ((void)01234567u);
     
    10171041    ((void)(-0X0123456789.0123456789P-09F));
    10181042    ((void)(-0X0123456789.0123456789P-09L));
     1043    ((void)((signed char )0b01101011));
     1044    ((void)((signed short int )0b01101011));
     1045    ((void)((signed int )0b01101011));
     1046    ((void)((signed long long int )0b01101011));
     1047    ((void)((__int128 )0b01101011));
     1048    ((void)((unsigned char )0b01101011u));
     1049    ((void)((signed short int )0b01101011u));
     1050    ((void)((unsigned int )0b01101011u));
     1051    ((void)((signed long long int )0b01101011u));
     1052    ((void)((__int128 )0b01101011u));
     1053    ((void)(+((signed int )((signed char )0b01101011))));
     1054    ((void)(+((signed int )((signed short int )0b01101011))));
     1055    ((void)(+((signed int )0b01101011)));
     1056    ((void)(+((signed long long int )0b01101011)));
     1057    ((void)(+((float )((__int128 )0b01101011))));
     1058    ((void)(+((signed int )((unsigned char )0b01101011u))));
     1059    ((void)(+((signed int )((signed short int )0b01101011u))));
     1060    ((void)(+((unsigned int )0b01101011u)));
     1061    ((void)(+((signed long long int )0b01101011u)));
     1062    ((void)(+((float )((__int128 )0b01101011u))));
     1063    ((void)(-((signed int )((signed char )0b01101011))));
     1064    ((void)(-((signed int )((signed short int )0b01101011))));
     1065    ((void)(-((signed int )0b01101011)));
     1066    ((void)(-((signed long long int )0b01101011)));
     1067    ((void)(-((float )((__int128 )0b01101011))));
     1068    ((void)(-((signed int )((unsigned char )0b01101011u))));
     1069    ((void)(-((signed int )((signed short int )0b01101011u))));
     1070    ((void)(-((unsigned int )0b01101011u)));
     1071    ((void)(-((signed long long int )0b01101011u)));
     1072    ((void)(-((float )((__int128 )0b01101011u))));
    10191073    ((void)((signed char )01234567));
    10201074    ((void)((signed short int )01234567));
  • src/tests/concurrent/coroutineYield.c

    r28bc8c8 r9d6f011  
    33#include <stdlib>
    44#include <thread>
     5
     6#ifdef LONG_TEST
     7static const unsigned long N = 600_000ul;
     8#else
     9static const unsigned long N = 1_000ul;
     10#endif
    511
    612coroutine Coroutine {};
     
    1824int main(int argc, char* argv[]) {
    1925        Coroutine c;
    20         for(int i = 0; i < 1_000; i++) {
     26        for(int i = 0; i < N; i++) {
    2127                sout | "Thread 1" | endl;
    2228                resume(c);
  • src/tests/concurrent/signal/block.c

    r28bc8c8 r9d6f011  
    1515#include <time.h>
    1616
     17#ifdef LONG_TEST
     18static const unsigned long N = 150_000ul;
     19#else
    1720static const unsigned long N = 5_000ul;
     21#endif
    1822
    1923#ifndef PREEMPTION_RATE
  • src/tests/concurrent/signal/disjoint.c

    r28bc8c8 r9d6f011  
    66#include <time.h>
    77
     8#ifdef LONG_TEST
     9static const unsigned long N = 300_000ul;
     10#else
    811static const unsigned long N = 10_000ul;
     12#endif
    913
    1014#ifndef PREEMPTION_RATE
  • src/tests/concurrent/signal/wait.c

    r28bc8c8 r9d6f011  
    1313#include <time.h>
    1414
     15#ifdef LONG_TEST
     16static const unsigned long N = 375_000ul;
     17#else
    1518static const unsigned long N = 2_500ul;
     19#endif
    1620
    1721#ifndef PREEMPTION_RATE
  • src/tests/preempt_longrun/Makefile.am

    r28bc8c8 r9d6f011  
    2323TIME = /usr/bin/time -f "%E"
    2424
    25 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt}
     25BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST
    2626CFLAGS = ${BUILD_FLAGS}
    2727CC = @CFA_BINDIR@/@CFA_NAME@
  • src/tests/preempt_longrun/Makefile.in

    r28bc8c8 r9d6f011  
    454454REPEAT = ${abs_top_srcdir}/tools/repeat
    455455TIME = /usr/bin/time -f "%E"
    456 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt}
     456BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST
    457457TESTS = block coroutine create disjoint enter enter3 processor stack wait yield
    458458all: all-am
  • src/tests/preempt_longrun/create.c

    r28bc8c8 r9d6f011  
    22#include <thread>
    33
    4 static const unsigned long N = 2_000ul;
     4static const unsigned long N = 60_000ul;
    55
    66#ifndef PREEMPTION_RATE
  • src/tests/preempt_longrun/enter.c

    r28bc8c8 r9d6f011  
    33#include <thread>
    44
    5 static const unsigned long N  = 70_000ul;
     5static const unsigned long N  = 2_100_000ul;
    66
    77#ifndef PREEMPTION_RATE
  • src/tests/preempt_longrun/enter3.c

    r28bc8c8 r9d6f011  
    33#include <thread>
    44
    5 static const unsigned long N  = 50_000ul;
     5static const unsigned long N  = 500_000ul;
    66
    77#ifndef PREEMPTION_RATE
  • src/tests/preempt_longrun/processor.c

    r28bc8c8 r9d6f011  
    1212}
    1313
    14 thread worker_t {};
    15 
    16 void main(worker_t & this) {}
    17 
    18 extern processor *   mainProcessor;
    19 extern thread_desc * mainThread;
    20 
    2114int main(int argc, char* argv[]) {
    22         for(int i = 0; i < N; i++) {
    23                 assert(this_processor == mainProcessor);
    24                 assert(this_thread == mainThread);
    25                 processor p;
     15        processor * p[15];
     16        for ( int pi = 0; pi < 15; pi++ ) {
     17                p[pi] = new();
     18        }
     19        for ( int i = 0; i < N; i++) {
     20                int pi = i % 15;
     21                delete( p[pi] );
     22                p[pi] = new();
    2623        }
    2724}
  • src/tests/preempt_longrun/yield.c

    r28bc8c8 r9d6f011  
    22#include <thread>
    33
     4#ifdef LONG_TEST
     5static const unsigned long N = 9_750_000ul;
     6#else
    47static const unsigned long N = 325_000ul;
     8#endif
    59
    610#ifndef PREEMPTION_RATE
Note: See TracChangeset for help on using the changeset viewer.