qemu/tests/tcg/mips/mips64-dsp/mflo.c
<<
>>
Prefs
   1#include "io.h"
   2
   3int main(void)
   4{
   5    long long acli, aclo;
   6    long long result;
   7
   8    acli   = 0x004433;
   9    result = 0x004433;
  10
  11    __asm
  12        ("mtlo %1, $ac1\n\t"
  13         "mflo %0, $ac1\n\t"
  14         : "=r"(aclo)
  15         : "r"(acli)
  16        );
  17    if (result != aclo) {
  18        printf("mflo wrong\n");
  19
  20        return -1;
  21    }
  22
  23    return 0;
  24}
  25