1#include<stdio.h> 2#include<assert.h> 3 4int main() 5{ 6 int rd, rs, rt; 7 int dsp; 8 int result; 9 10 rs = 0x12345678; 11 rt = 0x87657FFF; 12 result = 0x24AC00FF; 13 14 __asm 15 ("precrqu_s.qb.ph %0, %2, %3\n\t" 16 "rddsp %1\n\t" 17 : "=r"(rd), "=r"(dsp) 18 : "r"(rs), "r"(rt) 19 ); 20 assert(result == rd); 21 assert(((dsp >> 22) & 0x01) == 0x01); 22 23 return 0; 24} 25