OLD | NEW |
(Empty) | |
| 1 # Test LSHIFT values and ASTAT flags |
| 2 # mach: bfin |
| 3 #include "test.h" |
| 4 .include "testutils.inc" |
| 5 |
| 6 start |
| 7 |
| 8 dmm32 ASTAT, (0x7ce00000 | _VS | _V | _AV0S | _AQ | _CC | _V_COPY | _AN)
; |
| 9 dmm32 A0.w, 0xe1a3909e; |
| 10 dmm32 A0.x, 0xffffffff; |
| 11 imm32 R2, 0x214a26f6; |
| 12 A0 = LSHIFT A0 BY R2.L; |
| 13 checkreg A0.w, 0x3ff868e4; |
| 14 checkreg A0.x, 0x00000000; |
| 15 checkreg ASTAT, (0x7ce00000 | _VS | _V | _AV0S | _AQ | _CC | _V_COPY); |
| 16 |
| 17 dmm32 ASTAT, (0x64008a00 | _AV1 | _AV0S | _AV0 | _AC0 | _AQ | _CC | _AN)
; |
| 18 dmm32 A0.w, 0x72af1593; |
| 19 dmm32 A0.x, 0xfffffffd; |
| 20 imm32 R2, 0x6505b40c; |
| 21 A0 = LSHIFT A0 BY R2.L; |
| 22 checkreg A0.w, 0xf1593000; |
| 23 checkreg A0.x, 0x0000002a; |
| 24 checkreg ASTAT, (0x64008a00 | _AV1 | _AV0S | _AC0 | _AQ | _CC); |
| 25 |
| 26 pass |
OLD | NEW |