qemu/tests/tcg/mips/user/ase/dsp/test_dsp_r1_preceq_w_phl.c
<<
>>
Prefs
   1#include<stdio.h>
   2#include<assert.h>
   3
   4int main()
   5{
   6    int rd, rt;
   7    int result;
   8
   9    rt = 0x87654321;
  10    result = 0x87650000;
  11
  12    __asm
  13        ("preceq.w.phl %0, %1\n\t"
  14         : "=r"(rd)
  15         : "r"(rt)
  16        );
  17    assert(result == rd);
  18
  19    return 0;
  20}
  21