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_boolean.S (420B)


      1#include "macros.inc"
      2
      3test_suite boolean
      4
      5#if XCHAL_HAVE_BOOLEANS
      6
      7test all4
      8    movi    a2, 0xfec0
      9    wsr     a2, br
     10    all4    b0, b0
     11    rsr     a3, br
     12    assert  eq, a2, a3
     13    all4    b0, b4
     14    rsr     a3, br
     15    assert  eq, a2, a3
     16    all4    b0, b8
     17    rsr     a3, br
     18    assert  eq, a2, a3
     19    all4    b0, b12
     20    rsr     a3, br
     21    addi    a2, a2, 1
     22    assert  eq, a2, a3
     23test_end
     24
     25#endif
     26
     27test_suite_end