- Timestamp:
- Mar 8, 2018, 3:38:44 PM (8 years ago)
- 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. - Location:
- src/tests
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/.expect/literals.x86.txt
r28bc8c8 r9d6f011 522 522 signed int __main__Fi___1(){ 523 523 __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)); 524 548 ((void)01234567); 525 549 ((void)01234567u); … … 1017 1041 ((void)(-0X0123456789.0123456789P-09F)); 1018 1042 ((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)))); 1019 1073 ((void)((signed char )01234567)); 1020 1074 ((void)((signed short int )01234567)); -
src/tests/concurrent/coroutineYield.c
r28bc8c8 r9d6f011 3 3 #include <stdlib> 4 4 #include <thread> 5 6 #ifdef LONG_TEST 7 static const unsigned long N = 600_000ul; 8 #else 9 static const unsigned long N = 1_000ul; 10 #endif 5 11 6 12 coroutine Coroutine {}; … … 18 24 int main(int argc, char* argv[]) { 19 25 Coroutine c; 20 for(int i = 0; i < 1_000; i++) {26 for(int i = 0; i < N; i++) { 21 27 sout | "Thread 1" | endl; 22 28 resume(c); -
src/tests/concurrent/signal/block.c
r28bc8c8 r9d6f011 15 15 #include <time.h> 16 16 17 #ifdef LONG_TEST 18 static const unsigned long N = 150_000ul; 19 #else 17 20 static const unsigned long N = 5_000ul; 21 #endif 18 22 19 23 #ifndef PREEMPTION_RATE -
src/tests/concurrent/signal/disjoint.c
r28bc8c8 r9d6f011 6 6 #include <time.h> 7 7 8 #ifdef LONG_TEST 9 static const unsigned long N = 300_000ul; 10 #else 8 11 static const unsigned long N = 10_000ul; 12 #endif 9 13 10 14 #ifndef PREEMPTION_RATE -
src/tests/concurrent/signal/wait.c
r28bc8c8 r9d6f011 13 13 #include <time.h> 14 14 15 #ifdef LONG_TEST 16 static const unsigned long N = 375_000ul; 17 #else 15 18 static const unsigned long N = 2_500ul; 19 #endif 16 20 17 21 #ifndef PREEMPTION_RATE -
src/tests/preempt_longrun/Makefile.am
r28bc8c8 r9d6f011 23 23 TIME = /usr/bin/time -f "%E" 24 24 25 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} 25 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST 26 26 CFLAGS = ${BUILD_FLAGS} 27 27 CC = @CFA_BINDIR@/@CFA_NAME@ -
src/tests/preempt_longrun/Makefile.in
r28bc8c8 r9d6f011 454 454 REPEAT = ${abs_top_srcdir}/tools/repeat 455 455 TIME = /usr/bin/time -f "%E" 456 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} 456 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST 457 457 TESTS = block coroutine create disjoint enter enter3 processor stack wait yield 458 458 all: all-am -
src/tests/preempt_longrun/create.c
r28bc8c8 r9d6f011 2 2 #include <thread> 3 3 4 static const unsigned long N = 2_000ul;4 static const unsigned long N = 60_000ul; 5 5 6 6 #ifndef PREEMPTION_RATE -
src/tests/preempt_longrun/enter.c
r28bc8c8 r9d6f011 3 3 #include <thread> 4 4 5 static const unsigned long N = 70_000ul;5 static const unsigned long N = 2_100_000ul; 6 6 7 7 #ifndef PREEMPTION_RATE -
src/tests/preempt_longrun/enter3.c
r28bc8c8 r9d6f011 3 3 #include <thread> 4 4 5 static const unsigned long N = 50 _000ul;5 static const unsigned long N = 500_000ul; 6 6 7 7 #ifndef PREEMPTION_RATE -
src/tests/preempt_longrun/processor.c
r28bc8c8 r9d6f011 12 12 } 13 13 14 thread worker_t {};15 16 void main(worker_t & this) {}17 18 extern processor * mainProcessor;19 extern thread_desc * mainThread;20 21 14 int 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(); 26 23 } 27 24 } -
src/tests/preempt_longrun/yield.c
r28bc8c8 r9d6f011 2 2 #include <thread> 3 3 4 #ifdef LONG_TEST 5 static const unsigned long N = 9_750_000ul; 6 #else 4 7 static const unsigned long N = 325_000ul; 8 #endif 5 9 6 10 #ifndef PREEMPTION_RATE
Note:
See TracChangeset
for help on using the changeset viewer.