PPC: Fix rldcl
[qemu/agraf.git] / tests / tcg / mips / mips32-dspr2 / append.c
blob9a91e1650dbd76eaa6ef3676f3b8ead6be916344
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rs, rt;
7 int result;
9 rs = 0xFF0055AA;
10 rt = 0x0113421B;
11 result = 0x02268436;
12 __asm
13 ("append %0, %1, 0x01\n\t"
14 : "+r"(rt)
15 : "r"(rs)
17 assert(rt == result);
19 rs = 0xFFFF0FFF;
20 rt = 0x00010111;
21 result = 0x0010111F;
22 __asm
23 ("append %0, %1, 0x04\n\t"
24 : "+r"(rt)
25 : "r"(rs)
27 assert(rt == result);
29 return 0;