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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vmx/] [yousufi-1.c] - Blame information for rev 701

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

Line No. Rev Author Line
1 689 jeremybenn
#include "harness.h"
2
 
3
/* Tests the vec_ctu function, which converts a vector of floats to a vector
4
   of unsigned ints.  In powerpc-eabisim-run ver. moto-1.0, vec_ctu produces
5
   strange output for input values of less than ~.0039. -Umair */
6
 
7
static void test()
8
{
9
  vector float input = ((vector float){0.003,0.003,0.003,0.003});
10
  vector unsigned int output;
11
  vector unsigned int expect = ((vector unsigned int){0,0,0,0});
12
 
13
  output = vec_ctu(input, 1);
14
  check(vec_all_eq(output, expect), "vec_ctu");
15
}

powered by: WebSVN 2.1.0

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