PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips64-dspr2 / adduh_r_ob.c
blob832de833ef53e4463ab39299e3be5257ac6da216
1 #include "io.h"
3 int main(void)
5 long long rd, rs, rt, result;
6 rs = 0xFF987CDEBCEF2356;
7 rt = 0xFF987CDEBCEF2355;
8 result = 0xFF987CDEBCEF2356;
10 __asm("adduh_r.ob %0, %1, %2\n\t"
11 : "=r"(rd)
12 : "r"(rs), "r"(rt)
15 if (rd != result) {
16 printf("1 adduh_r.ob error\n\t");
17 return -1;
20 rs = 0xac50691729945316;
21 rt = 0xb9234ca3f5573162;
22 result = 0xb33a5b5d8f76423c;
24 __asm("adduh_r.ob %0, %1, %2\n\t"
25 : "=r"(rd)
26 : "r"(rs), "r"(rt)
29 if (rd != result) {
30 printf("2 adduh_r.ob error\n\t");
31 return -1;
34 return 0;