issue272.S 383 B

1234567891011121314151617181920212223
  1. // When the RND12 instruction produces large negative results, the AV0 flag is
  2. // should not be set.
  3. # mach: bfin
  4. #include "test.h"
  5. .include "testutils.inc"
  6. start
  7. init_r_regs 0;
  8. ASTAT = R0;
  9. R0.H = 0xcef4;
  10. R0.L = 0x3ed6;
  11. R1.H = 0x56f4;
  12. R1.L = 0x417a;
  13. R2.H = R0 - R1 (RND12);
  14. _DBG ASTAT;
  15. R0 = ASTAT;
  16. CHECKREG R0, (_VS|_V|_V_COPY|_AN);
  17. CHECKREG R2, 0x80000000;
  18. pass