qemu/tests/tcg/mips/mips64-dsp/cmpgu_eq_ob.c
<<
>>
Prefs
   1#include "io.h"
   2
   3int main(void)
   4{
   5    long long rd, rs, rt, result;
   6
   7    rs = 0x123456789ABCDEF0;
   8    rt = 0x123456789ABCDEFF;
   9    result = 0xFE;
  10
  11    __asm
  12        ("cmpgu.eq.ob %0, %1, %2\n\t"
  13         : "=r"(rd)
  14         : "r"(rs), "r"(rt)
  15        );
  16
  17    if (rd != result) {
  18        printf("cmpgu.eq.ob error\n");
  19
  20        return -1;
  21    }
  22
  23    rs = 0x133456789ABCDEF0;
  24    rt = 0x123556789ABCDEFF;
  25    result = 0x3E;
  26
  27    __asm
  28        ("cmpgu.eq.ob %0, %1, %2\n\t"
  29         : "=r"(rd)
  30         : "r"(rs), "r"(rt)
  31        );
  32
  33    if (rd != result) {
  34        printf("cmpgu.eq.ob error\n");
  35
  36        return -1;
  37    }
  38
  39    return 0;
  40}
  41