Merge tag 'qemu-macppc-20230206' of https://github.com/mcayland/qemu into staging
[qemu.git] / tests / tcg / mips / user / ase / dsp / test_dsp_r1_repl_ph.c
blob21074953bdde5824de0060e69bfba6ca2e03cd6c
1 #include<stdio.h>
2 #include<assert.h>
4 int main()
6 int rd, result;
8 result = 0x01BF01BF;
9 __asm
10 ("repl.ph %0, 0x1BF\n\t"
11 : "=r"(rd)
13 assert(rd == result);
15 result = 0x01FF01FF;
16 __asm
17 ("repl.ph %0, 0x01FF\n\t"
18 : "=r"(rd)
20 assert(rd == result);
22 return 0;