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_dsp_r1_replv_ph.c (264B)


      1#include<stdio.h>
      2#include<assert.h>
      3
      4int main()
      5{
      6    int rd, rt;
      7    int result;
      8
      9    rt = 0x12345678;
     10    result = 0x56785678;
     11    __asm
     12        ("replv.ph %0, %1\n\t"
     13         : "=r"(rd)
     14         : "r"(rt)
     15        );
     16    assert(rd == result);
     17
     18    return 0;
     19}