1#include "io.h" 2 3int main(void) 4{ 5 long long rd, rs, rt, dsp; 6 long long res, resdsp; 7 8 rs = 0x7fff567812345678; 9 rt = 0x8765432187654321; 10 11 res = 0xffac24ac00860086; 12 resdsp = 0x1; 13 14 __asm 15 ("precrqu_s.ob.qh %0, %2, %3\n\t" 16 "rddsp %1\n\t" 17 : "=r"(rd), "=r"(dsp) 18 : "r"(rs), "r"(rt) 19 ); 20 dsp = (dsp >> 22) & 0x1; 21 if ((rd != res) || (dsp != resdsp)) { 22 printf("precrq_s.ob.qh error\n"); 23 return -1; 24 } 25 26 return 0; 27} 28