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/aarch64/   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:     fmla_intrinsic_1.c (3.74 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* { dg-do run } */
/* { dg-options "-O3 --save-temps" } */

#include <arm_neon.h>

#define DELTA 0.0001

extern double fabs (double);

extern void abort (void);

#define TEST_VMLA(q1, q2, size, in1_lanes, in2_lanes)            \
static void                                \
__attribute__((noipa,noinline))                        \
test_vfma##q1##_lane##q2##_f##size (float##size##_t * res,        \
                   const float##size##_t *in1,        \
                   const float##size##_t *in2)        \
{                                    \
  float##size##x##in1_lanes##_t a = vld1##q1##_f##size (res);        \
  float##size##x##in1_lanes##_t b = vld1##q1##_f##size (in1);        \
  float##size##x##in2_lanes##_t c;                    \
  if (in2_lanes > 1)                            \
    {                                    \
      c = vld1##q2##_f##size (in2);                    \
      a = vfma##q1##_lane##q2##_f##size (a, b, c, 1);            \
    }                                    \
  else                                    \
    {                                    \
      c = vld1##q2##_f##size (in2 + 1);                    \
      a = vfma##q1##_lane##q2##_f##size (a, b, c, 0);            \
    }                                    \
  vst1##q1##_f##size (res, a);                        \
}

#define BUILD_VARS(width, n_lanes, n_half_lanes)        \
TEST_VMLA ( ,  , width, n_half_lanes, n_half_lanes)        \
TEST_VMLA (q,  , width, n_lanes, n_half_lanes)            \
TEST_VMLA ( , q, width, n_half_lanes, n_lanes)            \
TEST_VMLA (q, q, width, n_lanes, n_lanes)            \

BUILD_VARS (32, 4, 2)
BUILD_VARS (64, 2, 1)

#define POOL2 {0.0, 1.0}
#define POOL4 {0.0, 1.0, 2.0, 3.0}
#define EMPTY2 {0.0, 0.0}
#define EMPTY4 {0.0, 0.0, 0.0, 0.0}

#define BUILD_TEST(size, lanes)                    \
static void                            \
test_f##size (void)                        \
{                                \
  int i;                            \
  float##size##_t pool[lanes] = POOL##lanes;            \
  float##size##_t res[lanes] = EMPTY##lanes;            \
  float##size##_t res2[lanes] = EMPTY##lanes;            \
  float##size##_t res3[lanes] = EMPTY##lanes;            \
  float##size##_t res4[lanes] = EMPTY##lanes;            \
                                \
  /* Forecfully avoid optimization.  */                \
  asm volatile ("" : : : "memory");                \
  test_vfma_lane_f##size (res, pool, pool);            \
  for (i = 0; i < lanes / 2; i++)                \
    if (fabs (res[i] - pool[i]) > DELTA)            \
      abort ();                            \
                                \
  /* Forecfully avoid optimization.  */                \
  asm volatile ("" : : : "memory");                \
  test_vfmaq_lane_f##size (res2, pool, pool);            \
  for (i = 0; i < lanes; i++)                    \
    if (fabs (res2[i] - pool[i]) > DELTA)            \
      abort ();                            \
                                \
  /* Forecfully avoid optimization.  */                \
  asm volatile ("" : : : "memory");                \
  test_vfma_laneq_f##size (res3, pool, pool);            \
  for (i = 0; i < lanes / 2; i++)                \
    if (fabs (res3[i] - pool[i]) > DELTA)            \
      abort ();                            \
                                \
  /* Forecfully avoid optimization.  */                \
  asm volatile ("" : : : "memory");                \
  test_vfmaq_laneq_f##size (res4, pool, pool);            \
  for (i = 0; i < lanes; i++)                    \
    if (fabs (res4[i] - pool[i]) > DELTA)            \
      abort ();                            \
}

BUILD_TEST (32, 4)
BUILD_TEST (64, 2)

int
main (int argc, char **argv)
{
  test_f32 ();
  test_f64 ();
  return 0;
}

/* vfma_laneq_f32.
   vfma_lane_f32.  */
/* { dg-final { scan-assembler-times "fmla\\tv\[0-9\]+\.2s, v\[0-9\]+\.2s, v\[0-9\]+\.s\\\[\[0-9\]+\\\]" 2 } } */

/* vfmaq_lane_f32.
   vfmaq_laneq_f32.  */
/* { dg-final { scan-assembler-times "fmla\\tv\[0-9\]+\.4s, v\[0-9\]+\.4s, v\[0-9\]+\.s\\\[\[0-9\]+\\\]" 2 } } */

/* vfma_lane_f64.
   vfma_laneq_f64. */
/* { dg-final { scan-assembler-times "fmadd\\td\[0-9\]+\, d\[0-9\]+\, d\[0-9\]+\, d\[0-9\]+" 1 { target aarch64_big_endian } } } */
/* { dg-final { scan-assembler-times "fmadd\\td\[0-9\]+\, d\[0-9\]+\, d\[0-9\]+\, d\[0-9\]+" 2 { target aarch64_little_endian } } } */

/* vfmaq_lane_f64.
   vfmaq_laneq_f64.  */
/* { dg-final { scan-assembler-times "fmla\\tv\[0-9\]+\.2d, v\[0-9\]+\.2d, v\[0-9\]+\.d\\\[\[0-9\]+\\\]" 3 { target aarch64_big_endian } } } */
/* { dg-final { scan-assembler-times "fmla\\tv\[0-9\]+\.2d, v\[0-9\]+\.2d, v\[0-9\]+\.d\\\[\[0-9\]+\\\]" 2 { target aarch64_little_endian } } } */



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