History

revert vstore()

jiang committed 12 years ago

Commit f26fdae1 parent 1fa0fe21 file · +8 −0Browse files

Unified · Split

tccgen.c+8−0
@@ -2552,6 +2552,11 @@ ST_FUNC void vstore(void) · 2551 unmodified lines
25522552 /* remove bit field info to avoid loops */
25532553 vtop[-1].type.t = ft & ~(VT_BITFIELD | (-1 << VT_STRUCT_SHIFT));
25542554
2555+ /* duplicate source into other register */
2556+ gv_dup();
2557+ vswap();
2558+ vrott(3);
2559+
25552560 if((ft & VT_BTYPE) == VT_BOOL) {
25562561 gen_cast(&vtop[-1].type);
25572562 vtop[-1].type.t = (vtop[-1].type.t & ~VT_BTYPE) | (VT_BYTE | VT_UNSIGNED);
@@ -2583,6 +2588,9 @@ ST_FUNC void vstore(void) · 25 unmodified lines
25832588 gen_op('|');
25842589 /* store result */
25852590 vstore();
2591+
2592+ /* pop off shifted source from "duplicate source..." above */
2593+ vpop();
25862594 } else {
25872595 #ifdef CONFIG_TCC_BCHECK
25882596 /* bound check case */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t