diff options
| author | Michael Matz <matz@suse.de> | 2012-04-16 02:52:15 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2012-04-18 20:57:14 +0200 |
| commit | 9ca9c82ff8a4001299a4b9666d85352f5806d565 (patch) | |
| tree | cccd695d9db32bcba58c89a614eee9f5564371a5 /include | |
| parent | 718fd591fa93ff254a9ca68a0ad2ff8a55756489 (diff) | |
| download | tinycc-9ca9c82ff8a4001299a4b9666d85352f5806d565.tar.gz tinycc-9ca9c82ff8a4001299a4b9666d85352f5806d565.tar.bz2 | |
Fix comparing comparisons
Sometimes the result of a comparison is not directly used in a jump,
but in arithmetic or further comparisons. If those further things
do a vswap() with the VT_CMP as current top, and then generate
instructions for the new top, this most probably destroys the flags
(e.g. if it's a bitfield load like in the example).
vswap() must do the same like vsetc() and not allow VT_CMP vtops
to be moved down.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
