1#include "io.h" 2 3int main(void) 4{ 5 long long rd, rs, rt; 6 long long dsp; 7 long long resdsp, result; 8 9 rd = 0; 10 rs = 0x1234567802020202; 11 rt = 0x0034432112344321; 12 result = 0x03A8FFFFFFFFFFFF; 13 resdsp = 0x01; 14 15 __asm 16 ("muleu_s.qh.obl %0, %2, %3\n\t" 17 "rddsp %1\n\t" 18 : "=r"(rd), "=r"(dsp) 19 : "r"(rs), "r"(rt) 20 ); 21 22 dsp = (dsp >> 21) & 0x01; 23 if ((rd != result) || (resdsp != dsp)) { 24 printf("muleu_s.qh.obl error\n"); 25 26 return -1; 27 } 28 29 return 0; 30} 31