File: pr57351.c

package info (click to toggle)
gcc-riscv64-unknown-elf 8.3.0.2019.08%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 680,956 kB
  • sloc: ansic: 3,237,715; cpp: 896,882; ada: 772,854; f90: 144,254; asm: 68,788; makefile: 67,456; sh: 29,743; exp: 28,045; objc: 15,273; fortran: 11,885; python: 7,369; pascal: 5,375; awk: 3,725; perl: 2,872; yacc: 316; xml: 311; ml: 285; lex: 198; haskell: 122
file content (54 lines) | stat: -rw-r--r-- 1,420 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* { dg-do compile } */
/* { dg-require-effective-target arm_neon }  */
/* { dg-options "-std=c99 -Os -g -march=armv7-a" } */
/* { dg-add-options arm_neon } */

typedef unsigned int size_t;
typedef int ptrdiff_t;
typedef signed char int8_t ;
typedef signed long long int64_t;
typedef int8_t GFC_INTEGER_1;
typedef GFC_INTEGER_1 GFC_LOGICAL_1;
typedef int64_t GFC_INTEGER_8;
typedef GFC_INTEGER_8 GFC_LOGICAL_8;
typedef ptrdiff_t index_type;
typedef struct descriptor_dimension
{
  index_type lower_bound;
  index_type _ubound;
}
descriptor_dimension;
typedef struct { GFC_LOGICAL_1 *base_addr; size_t offset; index_type dtype; descriptor_dimension dim[7];} gfc_array_l1;
typedef struct { GFC_LOGICAL_8 *base_addr; size_t offset; index_type dtype; descriptor_dimension dim[7];} gfc_array_l8;
void
all_l8 (gfc_array_l8 * const restrict retarray,
 gfc_array_l1 * const restrict array,
 const index_type * const restrict pdim)
{
  GFC_LOGICAL_8 * restrict dest;
  index_type n;
  index_type len;
  index_type delta;
  index_type dim;
  dim = (*pdim) - 1;
  len = ((array)->dim[dim]._ubound + 1 - (array)->dim[dim].lower_bound);
  for (n = 0; n < dim; n++)
    {
      const GFC_LOGICAL_1 * restrict src;
      GFC_LOGICAL_8 result;
      {
  result = 1;
   {
     for (n = 0; n < len; n++, src += delta)
       {
  if (! *src)
    {
      result = 0;
      break;
    }
          }
     *dest = result;
   }
      }
    }
}