Merge tag 'qemu-macppc-20230206' of https://github.com/mcayland/qemu into staging
[qemu.git] / tests / tcg / mips / user / ase / dsp / test_dsp_r2_shrlv_ph.c
blobac79aa69acf01f80adf97cc6c5f4ab0da9a45531
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, rs, rt;
7 int result;
9 rs = 0x05;
10 rt = 0x12345678;
11 result = 0x009102B3;
13 __asm
14 ("shrlv.ph %0, %1, %2\n\t"
15 : "=r"(rd)
16 : "r"(rt), "r"(rs)
18 assert(rd == result);
20 return 0;