qemu/tests/tcg/mips/user/ase/dsp/test_dsp_r1_cmpgu_lt_qb.c
<<
>>
Prefs
   1#include<stdio.h>
   2#include<assert.h>
   3
   4int main()
   5{
   6    int rd, rs, rt;
   7    int result;
   8
   9    rs     = 0x11777066;
  10    rt     = 0x55AA70FF;
  11    result = 0x0D;
  12    __asm
  13        ("cmpgu.lt.qb %0, %1, %2\n\t"
  14         : "=r"(rd)
  15         : "r"(rs), "r"(rt)
  16        );
  17
  18    assert(rd == result);
  19
  20    rs     = 0x11777066;
  21    rt     = 0x11766066;
  22    result = 0x00;
  23    __asm
  24        ("cmpgu.lt.qb %0, %1, %2\n\t"
  25         : "=r"(rd)
  26         : "r"(rs), "r"(rt)
  27        );
  28    assert(rd == result);
  29
  30    return 0;
  31}
  32