Debian Codegraph @

gcc/testsuite/gcc.target/mips/mips32-dspr2-type.c

raw
1 /* Test MIPS32 DSP REV 2 instructions */
2 /* { dg-do compile } */
3 /* { dg-options "-mdspr2" } */
4 /* { dg-final { scan-assembler "\tmul.ph\t" } } */
5
6 typedef short v2hi __attribute__ ((vector_size(4)));
7
8 NOMIPS16 v2hi mul_v2hi (v2hi a, v2hi b)
9 {
10 return a * b;
11 }
12