- Timestamp:
- Dec 14, 2022, 12:23:42 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 441a6a7
- Parents:
- 7d9598d8 (diff), d8bdf13 (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:
- tests
- Files:
-
- 9 added
- 2 deleted
- 8 edited
- 8 moved
-
.expect/PRNG.txt (deleted)
-
.expect/PRNG.x64.txt (added)
-
.expect/PRNG.x86.txt (added)
-
.expect/nested_function.txt (deleted)
-
.expect/nested_function.x64.txt (added)
-
.expect/nested_function.x86.txt (added)
-
Makefile.am (modified) (2 diffs)
-
PRNG.cfa (modified) (4 diffs)
-
concurrent/barrier/generation.cfa (modified) (2 diffs)
-
concurrent/barrier/order.cfa (modified) (1 diff)
-
concurrent/once.cfa (modified) (1 diff)
-
concurrent/readyQ/leader_spin.cfa (modified) (2 diffs)
-
ctrl-flow/.expect/ifwhileCtl.txt (moved) (moved from tests/.expect/ifwhileCtl.txt )
-
ctrl-flow/.expect/loop-inc.txt (moved) (moved from tests/.expect/loop-inc.txt )
-
ctrl-flow/.expect/loop_else.txt (moved) (moved from tests/.expect/loop_else.txt )
-
ctrl-flow/.expect/loopctrl.txt (moved) (moved from tests/.expect/loopctrl.txt )
-
ctrl-flow/ifwhileCtl.cfa (moved) (moved from tests/ifwhileCtl.cfa )
-
ctrl-flow/loop-inc.cfa (moved) (moved from tests/loop-inc.cfa )
-
ctrl-flow/loop_else.cfa (moved) (moved from tests/loop_else.cfa )
-
ctrl-flow/loopctrl.cfa (moved) (moved from tests/loopctrl.cfa )
-
enum_tests/.expect/anonymous.txt (added)
-
enum_tests/anonymous.cfa (added)
-
io/away_fair.cfa (modified) (1 diff)
-
io/comp_fair.cfa (modified) (1 diff)
-
linking/mangling/header.hfa (added)
-
linking/mangling/lib.cfa (added)
-
linking/mangling/main.cfa (added)
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r7d9598d8 r2dcd80a 68 68 .PHONY: list .validate .test_makeflags 69 69 .INTERMEDIATE: .validate .validate.cfa .test_makeflags 70 EXTRA_PROGRAMS = avl_test linkonce .dummy_hack # build but do not install70 EXTRA_PROGRAMS = avl_test linkonce linking/mangling/anon .dummy_hack # build but do not install 71 71 EXTRA_DIST = test.py \ 72 72 pybin/__init__.py \ … … 101 101 avl_test_SOURCES = avltree/avl_test.cfa avltree/avl0.cfa avltree/avl1.cfa avltree/avl2.cfa avltree/avl3.cfa avltree/avl4.cfa avltree/avl-private.cfa 102 102 linkonce_SOURCES = link-once/main.cfa link-once/partner.cfa 103 linking_mangling_anon_SOURCES = linking/mangling/header.hfa linking/mangling/lib.cfa linking/mangling/main.cfa 103 104 # automake doesn't know we still need C/CPP rules so pretend like we have a C program 104 105 nodist__dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp -
tests/PRNG.cfa
r7d9598d8 r2dcd80a 8 8 // Created On : Wed Dec 29 09:38:12 2021 9 9 // Last Modified By : Peter A. Buhr 10 // Last Modified On : Sat Apr 9 15:21:14202211 // Update Count : 3 4410 // Last Modified On : Tue Nov 22 22:51:12 2022 11 // Update Count : 381 12 12 // 13 13 … … 22 22 #include <mutex_stmt.hfa> 23 23 24 #ifdef __x86_64__ // 64-bit architecture 25 #define PRNG PRNG64 26 #else // 32-bit architecture 27 #define PRNG PRNG32 28 #endif // __x86_64__ 29 24 30 #ifdef TIME // use -O2 -nodebug 25 31 #define STARTTIME start = timeHiRes() … … 54 60 55 61 56 u int32_t seed = 1009;62 unsigned int seed = 1009; 57 63 58 64 thread T1 {}; … … 158 164 #if 1 159 165 PRNG prng; 166 160 167 if ( seed != 0 ) set_seed( prng, seed ); 161 168 -
tests/concurrent/barrier/generation.cfa
r7d9598d8 r2dcd80a 37 37 for(c; 'A' ~= 'Z') { 38 38 // Yield for chaos 39 yield( prng(this, 10));39 yield( prng(this, 10) ); 40 40 41 41 // Print the generation, no newline because … … 43 43 44 44 // Yield again for more chaos 45 yield( prng(this, 10));45 yield( prng(this, 10) ); 46 46 47 47 // Block on the barrier -
tests/concurrent/barrier/order.cfa
r7d9598d8 r2dcd80a 37 37 for(l; NUM_LAPS) { 38 38 // Yield for chaos 39 yield( prng(this, 10));39 yield( prng(this, 10) ); 40 40 41 41 // Block and what order we arrived -
tests/concurrent/once.cfa
r7d9598d8 r2dcd80a 30 30 31 31 // sometime yields 32 yield( prng(this, 3));32 yield( prng(this, 3) ); 33 33 } 34 34 } -
tests/concurrent/readyQ/leader_spin.cfa
r7d9598d8 r2dcd80a 26 26 } 27 27 28 PRNG lead_rng;28 PRNG64 lead_rng; 29 29 volatile unsigned leader; 30 30 volatile size_t lead_idx; 31 31 32 const u nsignednthreads = 17;33 const u nsignedstop_count = 327;32 const uint64_t nthreads = 17; 33 const uint64_t stop_count = 327; 34 34 35 35 thread$ * the_main; … … 50 50 for(i; nthreads) { 51 51 while( threads[i]->idx != lead_idx ) { 52 Pause();52 sched_yield(); 53 53 } 54 54 } -
tests/io/away_fair.cfa
r7d9598d8 r2dcd80a 41 41 42 42 if(last == curr) { 43 Pause();43 sched_yield(); 44 44 continue; 45 45 } -
tests/io/comp_fair.cfa
r7d9598d8 r2dcd80a 52 52 53 53 if(last == curr) { 54 Pause();54 sched_yield(); 55 55 continue; 56 56 }
Note:
See TracChangeset
for help on using the changeset viewer.