URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [mips32-dsp-type.c] - Rev 378
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test MIPS32 DSP instructions */ /* { dg-do compile } */ /* { dg-options "-mdsp" } */ /* { dg-final { scan-assembler "addq.ph" } } */ /* { dg-final { scan-assembler "addu.qb" } } */ /* { dg-final { scan-assembler "subq.ph" } } */ /* { dg-final { scan-assembler "subu.qb" } } */ typedef char v4qi __attribute__ ((vector_size(4))); typedef short v2hi __attribute__ ((vector_size(4))); NOMIPS16 v2hi add_v2hi (v2hi a, v2hi b) { return a + b; } NOMIPS16 v4qi add_v4qi (v4qi a, v4qi b) { return a + b; } NOMIPS16 v2hi sub_v2hi (v2hi a, v2hi b) { return a - b; } NOMIPS16 v4qi sub_v4qi (v4qi a, v4qi b) { return a - b; }
Go to most recent revision | Compare with Previous | Blame | View Log