URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [fhalve.c] - Rev 711
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-mvis3" } */ float test_fhadds (float x, float y) { return __builtin_vis_fhadds (x, y); } double test_fhaddd (double x, double y) { return __builtin_vis_fhaddd (x, y); } float test_fhsubs (float x, float y) { return __builtin_vis_fhsubs (x, y); } double test_fhsubd (double x, double y) { return __builtin_vis_fhsubd (x, y); } float test_fnhadds (float x, float y) { return __builtin_vis_fnhadds (x, y); } double test_fnhaddd (double x, double y) { return __builtin_vis_fnhaddd (x, y); } /* { dg-final { scan-assembler "fhadds\t%" } } */ /* { dg-final { scan-assembler "fhaddd\t%" } } */ /* { dg-final { scan-assembler "fhsubs\t%" } } */ /* { dg-final { scan-assembler "fhsubd\t%" } } */ /* { dg-final { scan-assembler "fnhadds\t%" } } */ /* { dg-final { scan-assembler "fnhaddd\t%" } } */
Go to most recent revision | Compare with Previous | Blame | View Log