qemu

FORK: QEMU emulator
git clone https://git.neptards.moe/neptards/qemu.git
Log | Files | Refs | Submodules | LICENSE

test_mul32.S (396B)


      1 #include "macros.inc"
      2 
      3 test_suite mul32
      4 
      5 #if XCHAL_HAVE_MUL32
      6 
      7 test mull
      8     movi    a2, 0x137f5a5a
      9     mov     a3, a2
     10     movi    a4, 0xa5a5137f
     11     movi    a6, 0x5de480a6
     12     mull    a5, a2, a4
     13     assert  eq, a5, a6
     14     mull    a2, a2, a4
     15     assert  eq, a2, a6
     16     mull    a3, a4, a3
     17     assert  eq, a3, a6
     18 test_end
     19 
     20 #endif
     21 
     22 /* unfortunately dc232b doesn't have muluh/mulsh*/
     23 
     24 test_suite_end