cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

test_bz.S (655B)


      1#include "macros.inc"
      2
      3test_suite bz
      4
      5test beqz
      6    movi    a2, 0
      7    _beqz   a2, 1f
      8    test_fail
      91:
     10    movi    a2, 1
     11    _beqz   a2, 1f
     12    j       2f
     131:
     14    test_fail
     152:
     16test_end
     17
     18test bnez
     19    movi    a2, 1
     20    _bnez   a2, 1f
     21    test_fail
     221:
     23    movi    a2, 0
     24    _bnez   a2, 1f
     25    j       2f
     261:
     27    test_fail
     282:
     29test_end
     30
     31test bltz
     32    movi    a2, 0xffffffff
     33    bltz    a2, 1f
     34    test_fail
     351:
     36    movi    a2, 0
     37    bltz    a2, 1f
     38    j       2f
     391:
     40    test_fail
     412:
     42test_end
     43
     44test bgez
     45    movi    a2, 0
     46    bgez    a2, 1f
     47    test_fail
     481:
     49    movi    a2, 0xffffffff
     50    bgez    a2, 1f
     51    j       2f
     521:
     53    test_fail
     542:
     55test_end
     56
     57test_suite_end