1#include "io.h" 2 3int main(void) 4{ 5 long long rd, result; 6 rd = 0; 7 result = 0x01FF01FF01FF01FF; 8 9 __asm 10 ("repl.qh %0, 0x1FF\n\t" 11 : "=r"(rd) 12 ); 13 14 if (result != rd) { 15 printf("repl.qh error 1\n"); 16 17 return -1; 18 } 19 20 rd = 0; 21 result = 0xFE00FE00FE00FE00; 22 __asm 23 ("repl.qh %0, 0xFFFFFFFFFFFFFE00\n\t" 24 : "=r"(rd) 25 ); 26 27 if (result != rd) { 28 printf("repl.qh error 2\n"); 29 30 return -1; 31 } 32 33 return 0; 34} 35