summaryrefslogtreecommitdiffstats
path: root/qemu/tests/tcg/mips/mips32-dsp/repl_qb.c
blob: 6631393ea13165ad29b37eb89878aa3aa7a4c276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<stdio.h>
#include<assert.h>

int main()
{
    int rd, result;

    result = 0xBFBFBFBF;
    __asm
        ("repl.qb %0, 0xBF\n\t"
         : "=r"(rd)
        );
    assert(rd == result);

    return 0;
}