OpenCores
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.dg/] [vmx/] [ira2b.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
#include "harness.h"
2
 
3
static vector float
4
f(vector float f32a, vector float f32b, vector float f32c)
5
{
6
  f32c = vec_ceil(f32a);
7
  return vec_vmaddfp(f32a, f32b, f32c);
8
}
9
 
10
static void test()
11
{
12
  check(vec_all_eq(f(((vector float){2,3,5,7}),
13
                     ((vector float){11,13,17,19}),
14
                     ((vector float){23,29,31,37})),
15
                   ((vector float){24, 42, 90, 140})),
16
        "test");
17
}

powered by: WebSVN 2.1.0

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