1# mach: all 2# output: 3# sim: --environment operating 4 5.include "t-macros.i" 6 7 start 8 9 ;; clear FX 10 ldi r2, #0x8005 11 mvtc r2, cr0 12 13 loadacc2 a1 0x7f 0xffff 0xffff 14 ldi r8, 0xffff 15 ldi r9, 0x8001 16test_mulxu1: 17 MULXU a1, r9, r8 18 checkacc2 1 a1 0x00 0x8000 0x7FFF 19 20 21 ;; set FX 22 ldi r2, #0x8085 23 mvtc r2, cr0 24 25 loadacc2 a1 0x7f 0xffff 0xffff 26 ldi r8, 0xffff 27 ldi r9, 0x8001 28test_mulxu2: 29 MULXU a1, r9, r8 30 checkacc2 2 a1 0x01 0x0000 0xFFFE 31 32 exit0 33