OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [vmx/] [harness.h] - Rev 853

Go to most recent revision | Compare with Previous | Blame | View Log

/* Common code for most VMX test cases.  To use, include this file,
   then write a routine named test() that performs a series of calls
   to check().  */
 
#include <stdlib.h>
#include <stdio.h>
#include <altivec.h>
 
static int failed;
static void test (void);
 
static void
check (int result, const char *name)
{
  if (!result)
    {
      failed++;
      printf ("fail %s\n", name);
    }
}
 
int
main (void)
{
  test ();
  if (failed)
    abort ();
 
  return 0;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.