root / tests / cris / check_clearfv32.s @ 7267c094
History | View | Annotate | Download (358 Bytes)
1 | dd43edf4 | ths | # mach: crisv32 |
---|---|---|---|
2 | dd43edf4 | ths | # output: ef\nef\n |
3 | dd43edf4 | ths | |
4 | dd43edf4 | ths | ; Check that "clearf x" doesn't trivially fail. |
5 | dd43edf4 | ths | |
6 | dd43edf4 | ths | .include "testutils.inc" |
7 | dd43edf4 | ths | start |
8 | dd43edf4 | ths | setf puixnzvc |
9 | dd43edf4 | ths | clearf x ; Actually, x would be cleared by almost-all other insns. |
10 | dd43edf4 | ths | move ccs,r3 |
11 | ff56ff7a | edgar_igl | and.d 0xff, $r3 |
12 | dd43edf4 | ths | checkr3 ef |
13 | dd43edf4 | ths | |
14 | dd43edf4 | ths | setf puixnzvc |
15 | dd43edf4 | ths | moveq 0, $r3 ; moveq should only clear the xflag. |
16 | dd43edf4 | ths | move ccs,r3 |
17 | ff56ff7a | edgar_igl | and.d 0xff, $r3 |
18 | dd43edf4 | ths | checkr3 ef |
19 | dd43edf4 | ths | quit |