qemu/tests/tcg/mips/mips64-dsp/repl_ph.c
<<
>>
Prefs
   1#include "io.h"
   2
   3int main(void)
   4{
   5    long long rd, result;
   6
   7    result = 0x01BF01BF;
   8    __asm
   9        ("repl.ph %0, 0x1BF\n\t"
  10         : "=r"(rd)
  11        );
  12    if (rd != result) {
  13        printf("repl.ph wrong\n");
  14
  15        return -1;
  16    }
  17
  18    result = 0x01FF01FF;
  19    __asm
  20        ("repl.ph %0, 0x01FF\n\t"
  21         : "=r"(rd)
  22        );
  23    if (rd != result) {
  24        printf("repl.ph wrong\n");
  25
  26        return -1;
  27    }
  28
  29    return 0;
  30}
  31