cswap revision 12027
16226Snate@binkert.org#! /bin/awk -f 26226Snate@binkert.org 36226Snate@binkert.orgBEGIN { 46226Snate@binkert.org purpose = "report time used by int only and int+fp cswaps"; 56226Snate@binkert.org 66226Snate@binkert.org nmach = 0; 76226Snate@binkert.org 86226Snate@binkert.org test_int = "7"; 96226Snate@binkert.org test_fp = "8"; 106226Snate@binkert.org} 116226Snate@binkert.org 126226Snate@binkert.org{ 136226Snate@binkert.org mach = $1 146226Snate@binkert.org test = $2 156226Snate@binkert.org iter = $3 166226Snate@binkert.org time = $6 + $8 176226Snate@binkert.org 186226Snate@binkert.org if (machi[mach] == 0) { 196226Snate@binkert.org machn[nmach] = mach; 206226Snate@binkert.org machi[mach] = 1; 216226Snate@binkert.org ++nmach; 226226Snate@binkert.org } 236226Snate@binkert.org 246226Snate@binkert.org us_per_op = time / iter * 1000000 256226Snate@binkert.org times[mach "_" test] = us_per_op; 266226Snate@binkert.org} 276226Snate@binkert.org 286226Snate@binkert.org 296226Snate@binkert.orgEND { 306226Snate@binkert.org for (i=0; i<nmach; ++i) { 316226Snate@binkert.org m = machn[i]; 326226Snate@binkert.org 336226Snate@binkert.org integer = times[m "_" test_int]; 346226Snate@binkert.org fp = times[m "_" test_fp]; 356226Snate@binkert.org printf ("%s|%3.1f|%3.1f\n", m, integer, fp); 366226Snate@binkert.org } 376226Snate@binkert.org} 388335Snate@binkert.org