Lines Matching full:stack
119 /* This function checks if enough parameters are available on the stack. */
213 long *stack = astate->stack; in altera_execute() local
528 stack[stack_ptr] = stack[stack_ptr - 1]; in altera_execute()
534 swap(stack[stack_ptr - 2], stack[stack_ptr - 1]); in altera_execute()
539 stack[stack_ptr - 1] += stack[stack_ptr]; in altera_execute()
545 stack[stack_ptr - 1] -= stack[stack_ptr]; in altera_execute()
551 stack[stack_ptr - 1] *= stack[stack_ptr]; in altera_execute()
557 stack[stack_ptr - 1] /= stack[stack_ptr]; in altera_execute()
563 stack[stack_ptr - 1] %= stack[stack_ptr]; in altera_execute()
569 stack[stack_ptr - 1] <<= stack[stack_ptr]; in altera_execute()
575 stack[stack_ptr - 1] >>= stack[stack_ptr]; in altera_execute()
580 stack[stack_ptr - 1] ^= (-1L); in altera_execute()
586 stack[stack_ptr - 1] &= stack[stack_ptr]; in altera_execute()
592 stack[stack_ptr - 1] |= stack[stack_ptr]; in altera_execute()
598 stack[stack_ptr - 1] ^= stack[stack_ptr]; in altera_execute()
604 stack[stack_ptr - 1] = stack[stack_ptr - 1] ? 0L : 1L; in altera_execute()
610 stack[stack_ptr - 1] = in altera_execute()
611 (stack[stack_ptr - 1] > stack[stack_ptr]) ? in altera_execute()
619 stack[stack_ptr - 1] = in altera_execute()
620 (stack[stack_ptr - 1] < stack[stack_ptr]) ? in altera_execute()
657 pc = stack[--stack_ptr] + code_sect; in altera_execute()
668 * ...stack 0 is source 1 value in altera_execute()
669 * ...stack 1 is source 2 value in altera_execute()
670 * ...stack 2 is mask value in altera_execute()
671 * ...stack 3 is count in altera_execute()
674 s32 a = stack[--stack_ptr]; in altera_execute()
675 s32 b = stack[--stack_ptr]; in altera_execute()
676 long_tmp = stack[--stack_ptr]; in altera_execute()
677 count = stack[stack_ptr - 1]; in altera_execute()
684 stack[stack_ptr - 1] = in altera_execute()
693 * ...stack 0 is integer value in altera_execute()
698 "%ld", stack[--stack_ptr]); in altera_execute()
710 * ...stack 0 is scan data in altera_execute()
711 * ...stack 1 is count in altera_execute()
715 long_tmp = stack[--stack_ptr]; in altera_execute()
716 count = stack[--stack_ptr]; in altera_execute()
723 * ...stack 0 is scan data in altera_execute()
724 * ...stack 1 is count in altera_execute()
728 long_tmp = stack[--stack_ptr]; in altera_execute()
729 count = stack[stack_ptr - 1]; in altera_execute()
733 stack[stack_ptr - 1] = get_unaligned_le32(&charbuf[0]); in altera_execute()
738 * ...stack 0 is scan data in altera_execute()
739 * ...stack 1 is count in altera_execute()
743 long_tmp = stack[--stack_ptr]; in altera_execute()
744 count = stack[--stack_ptr]; in altera_execute()
751 * ...stack 0 is scan data in altera_execute()
752 * ...stack 1 is count in altera_execute()
756 long_tmp = stack[--stack_ptr]; in altera_execute()
757 count = stack[stack_ptr - 1]; in altera_execute()
761 stack[stack_ptr - 1] = get_unaligned_le32(&charbuf[0]); in altera_execute()
766 count = stack[--stack_ptr]; in altera_execute()
772 * ...stack 0 is count in altera_execute()
773 * ...stack 1 is literal data in altera_execute()
777 count = stack[--stack_ptr]; in altera_execute()
778 long_tmp = stack[--stack_ptr]; in altera_execute()
786 * ...stack 0 is count in altera_execute()
789 count = stack[--stack_ptr]; in altera_execute()
797 * ...stack 0 is count in altera_execute()
798 * ...stack 1 is literal data in altera_execute()
802 count = stack[--stack_ptr]; in altera_execute()
803 long_tmp = stack[--stack_ptr]; in altera_execute()
810 count = stack[--stack_ptr]; in altera_execute()
818 * ...stack 0 is count in altera_execute()
819 * ...stack 1 is literal data in altera_execute()
822 count = stack[--stack_ptr]; in altera_execute()
823 long_tmp = stack[--stack_ptr]; in altera_execute()
832 * ...stack 0 is count in altera_execute()
835 count = stack[--stack_ptr]; in altera_execute()
843 * ...stack 0 is count in altera_execute()
844 * ...stack 1 is literal data in altera_execute()
848 count = stack[--stack_ptr]; in altera_execute()
849 long_tmp = stack[--stack_ptr]; in altera_execute()
858 ch = (char) stack[--stack_ptr]; in altera_execute()
873 *exit_code = stack[--stack_ptr]; in altera_execute()
881 stack[stack_ptr - 1] = in altera_execute()
882 (stack[stack_ptr - 1] == stack[stack_ptr]) ? in altera_execute()
893 if (stack[stack_ptr - 1] < 0) in altera_execute()
894 stack[stack_ptr - 1] = 0 - stack[stack_ptr - 1]; in altera_execute()
913 swap(stack[stack_ptr - 2], stack[stack_ptr - 1]); in altera_execute()
918 swap(stack[stack_ptr - index], stack[stack_ptr - 1]); in altera_execute()
922 swap(stack[stack_ptr - 2], stack[stack_ptr - 1]); in altera_execute()
927 swap(stack[stack_ptr - index], stack[stack_ptr - 1]); in altera_execute()
932 stack[stack_ptr] = stack[stack_ptr - index]; in altera_execute()
939 swap(stack[stack_ptr - index], stack[stack_ptr - 1]); in altera_execute()
943 swap(stack[stack_ptr - 2], stack[stack_ptr - 1]); in altera_execute()
948 stack[stack_ptr] = stack[stack_ptr - index]; in altera_execute()
955 stack[stack_ptr] = stack[stack_ptr - index]; in altera_execute()
960 stack[stack_ptr++] = 0; in altera_execute()
963 stack[stack_ptr++] = (s32) args[0]; in altera_execute()
966 stack[stack_ptr++] = vars[args[0]]; in altera_execute()
974 stack[stack_ptr++] = pc; in altera_execute()
983 * ...stack 0 is step value in altera_execute()
984 * ...stack 1 is end value in altera_execute()
985 * ...stack 2 is top address in altera_execute()
988 s32 step = stack[stack_ptr - 1]; in altera_execute()
989 s32 end = stack[stack_ptr - 2]; in altera_execute()
990 s32 top = stack[stack_ptr - 3]; in altera_execute()
1052 * Exchange top with Nth stack value in altera_execute()
1053 * ...argument 0 is 0-based stack entry in altera_execute()
1058 swap(stack[stack_ptr - index], stack[stack_ptr - 1]); in altera_execute()
1062 * Duplicate Nth stack value in altera_execute()
1063 * ...argument 0 is 0-based stack entry to duplicate in altera_execute()
1067 stack[stack_ptr] = stack[stack_ptr - index]; in altera_execute()
1073 * Pop stack into scalar variable in altera_execute()
1075 * ...stack 0 is value in altera_execute()
1078 vars[args[0]] = stack[--stack_ptr]; in altera_execute()
1083 * Pop stack into integer array element in altera_execute()
1085 * ...stack 0 is array index in altera_execute()
1086 * ...stack 1 is value in altera_execute()
1136 index = stack[--stack_ptr]; in altera_execute()
1139 longptr_tmp[index] = stack[--stack_ptr]; in altera_execute()
1145 * Pop stack into Boolean array in altera_execute()
1147 * ...stack 0 is count in altera_execute()
1148 * ...stack 1 is array index in altera_execute()
1149 * ...stack 2 is value in altera_execute()
1218 long_count = stack[--stack_ptr]; in altera_execute()
1221 long_idx = stack[--stack_ptr]; in altera_execute()
1227 * stack 0 = array right index in altera_execute()
1228 * stack 1 = array left index in altera_execute()
1248 long_tmp = stack[--stack_ptr]; in altera_execute()
1269 * Pop stack and branch if zero in altera_execute()
1271 * ...stack 0 is condition value in altera_execute()
1274 if (stack[--stack_ptr] == 0) { in altera_execute()
1288 * ...stack 0 is array index in altera_execute()
1289 * ...stack 1 is count in altera_execute()
1293 long_idx = stack[--stack_ptr]; in altera_execute()
1294 long_count = stack[--stack_ptr]; in altera_execute()
1298 * stack 0 = array right index in altera_execute()
1299 * stack 1 = array left index in altera_execute()
1300 * stack 2 = count in altera_execute()
1303 long_count = stack[--stack_ptr]; in altera_execute()
1357 * ...stack 0 is array index in altera_execute()
1358 * ...stack 1 is count in altera_execute()
1362 index = stack[--stack_ptr]; in altera_execute()
1363 count = stack[--stack_ptr]; in altera_execute()
1367 * stack 0 = array right index in altera_execute()
1368 * stack 1 = array left index in altera_execute()
1380 * ...stack 0 is array index in altera_execute()
1381 * ...stack 1 is count in altera_execute()
1385 index = stack[--stack_ptr]; in altera_execute()
1386 count = stack[--stack_ptr]; in altera_execute()
1390 * stack 0 = array right index in altera_execute()
1391 * stack 1 = array left index in altera_execute()
1403 * ...stack 0 is array index in altera_execute()
1404 * ...stack 1 is count in altera_execute()
1408 index = stack[--stack_ptr]; in altera_execute()
1409 count = stack[--stack_ptr]; in altera_execute()
1413 * stack 0 = array right index in altera_execute()
1414 * stack 1 = array left index in altera_execute()
1427 * ...stack 0 is array index in altera_execute()
1428 * ...stack 1 is count in altera_execute()
1432 index = stack[--stack_ptr]; in altera_execute()
1433 count = stack[--stack_ptr]; in altera_execute()
1437 * stack 0 = array right index in altera_execute()
1438 * stack 1 = array left index in altera_execute()
1451 * ...stack 0 is integer expression in altera_execute()
1455 long_tmp = stack[--stack_ptr]; in altera_execute()
1463 * ...stack 0 is array index in altera_execute()
1468 index = stack[stack_ptr - 1]; in altera_execute()
1474 stack[stack_ptr - 1] = longptr_tmp[index]; in altera_execute()
1479 stack[stack_ptr - 1] = in altera_execute()
1489 * ...stack 0 is count in altera_execute()
1490 * ...stack 1 is array index in altera_execute()
1505 count = stack[--stack_ptr]; in altera_execute()
1508 index = stack[stack_ptr - 1]; in altera_execute()
1512 * stack 0 = array right index in altera_execute()
1513 * stack 1 = array left index in altera_execute()
1529 stack[stack_ptr - 1] = long_tmp; in altera_execute()
1536 * ...stack 0 is new size in altera_execute()
1541 long_tmp = stack[--stack_ptr]; in altera_execute()
1595 * ...stack 0 is variable ID in altera_execute()
1596 * ...stack 1 is array right index in altera_execute()
1597 * ...stack 2 is array left index in altera_execute()
1607 variable_id = stack[--stack_ptr]; in altera_execute()
1608 long_idx = stack[--stack_ptr];/* right indx */ in altera_execute()
1609 long_idx2 = stack[--stack_ptr];/* left indx */ in altera_execute()
1661 * ...stack 0 is count in altera_execute()
1662 * ...stack 1 is dest index in altera_execute()
1663 * ...stack 2 is source index in altera_execute()
1677 copy_count = stack[--stack_ptr]; in altera_execute()
1678 copy_index = stack[--stack_ptr]; in altera_execute()
1679 copy_index2 = stack[--stack_ptr]; in altera_execute()
1684 * stack 0 = source right index in altera_execute()
1685 * stack 1 = source left index in altera_execute()
1686 * stack 2 = destination right index in altera_execute()
1687 * stack 3 = destination left index in altera_execute()
1689 destleft = stack[--stack_ptr]; in altera_execute()
1821 * ...stack 0 is capture index in altera_execute()
1822 * ...stack 1 is scan data index in altera_execute()
1823 * ...stack 2 is count in altera_execute()
1834 capture_index = stack[--stack_ptr]; in altera_execute()
1835 scan_index = stack[--stack_ptr]; in altera_execute()
1839 * stack 0 = capture right index in altera_execute()
1840 * stack 1 = capture left index in altera_execute()
1841 * stack 2 = scan right index in altera_execute()
1842 * stack 3 = scan left index in altera_execute()
1843 * stack 4 = count in altera_execute()
1845 scan_right = stack[--stack_ptr]; in altera_execute()
1846 scan_left = stack[--stack_ptr]; in altera_execute()
1852 long_count = stack[--stack_ptr]; in altera_execute()
1947 * ...stack 0 is cycles in altera_execute()
1948 * ...stack 1 is microseconds in altera_execute()
1952 long_tmp = stack[--stack_ptr]; in altera_execute()
1958 long_tmp = stack[--stack_ptr]; in altera_execute()
1980 * ...stack 0 is source 1 index in altera_execute()
1981 * ...stack 1 is source 2 index in altera_execute()
1982 * ...stack 2 is mask index in altera_execute()
1983 * ...stack 3 is count in altera_execute()
1996 index1 = stack[--stack_ptr]; in altera_execute()
1997 index2 = stack[--stack_ptr]; in altera_execute()
1998 mask_index = stack[--stack_ptr]; in altera_execute()
1999 long_count = stack[--stack_ptr]; in altera_execute()
2003 * stack 0 = source 1 right index in altera_execute()
2004 * stack 1 = source 1 left index in altera_execute()
2005 * stack 2 = source 2 right index in altera_execute()
2006 * stack 3 = source 2 left index in altera_execute()
2007 * stack 4 = mask right index in altera_execute()
2008 * stack 5 = mask left index in altera_execute()
2010 s32 mask_right = stack[--stack_ptr]; in altera_execute()
2011 s32 mask_left = stack[--stack_ptr]; in altera_execute()
2053 stack[stack_ptr++] = long_tmp; in altera_execute()