qemu/tests/tcg/mips/mips64-dsp/raddu_l_ob.c
<<
>>
Prefs
   1#include "io.h"
   2
   3int main(void)
   4{
   5    long long rd, rs, result;
   6    rs = 0x12345678ABCDEF0;
   7    result = 0x000000000001E258;
   8
   9    __asm
  10        ("raddu.l.ob %0, %1, %2\n\t"
  11         : "=r"(rd)
  12         : "r"(rs)
  13        );
  14
  15    if (rd != result) {
  16        printf("raddu.l.ob error\n");
  17
  18        return -1;
  19    }
  20
  21    return 0;
  22}
  23