1#include "io.h" 2 3int main(void) 4{ 5 long long rd, rs, rt; 6 long long dsp; 7 long long res; 8 9 rs = 0x1234567812345678; 10 rt = 0x8765432187654321; 11 12 res = 0x1234123487658765; 13 14 __asm 15 ("precrq_rs.qh.pw %0, %1, %2\n\t" 16 : "=r"(rd) 17 : "r"(rs), "r"(rt) 18 ); 19 20 if (rd != res) { 21 printf("precrq_rs.qh.pw error\n"); 22 return -1; 23 } 24 25 rs = 0x7fffC67812345678; 26 rt = 0x8765432187654321; 27 28 res = 0x7fff123487658765; 29 30 __asm 31 ("precrq_rs.qh.pw %0, %2, %3\n\t" 32 "rddsp %1\n\t" 33 : "=r"(rd), "=r"(dsp) 34 : "r"(rs), "r"(rt) 35 ); 36 37 if (rd != res) { 38 printf("precrq_rs.qh.pw error\n"); 39 return -1; 40 } 41 42 return 0; 43} 44