• LI Qingwu's avatar
    arm neon: avoid GCC 11 vst1_*_x4 built-in functions · e18dcd7d
    LI Qingwu authored
    The vst1_*_x4 built-in functions in GCC 11 produce incorrect results,
    as following exanple, this patch circumvents the issue by avoiding these
    functions in GCC 11 and earlier versions.
    
    float32x2x4_t val = {{
            {0.10f, 0.20f},
            {0.30f, 0.40f},
            {0.50f, 0.60f},
            {0.70f, 0.80f}
        }};
        float result[16];
    
        vst1_f32_x4(result, val);
    
    get result = {0.100000 0.200000 0.500000 0.600000 0.000000 0.000000 0.000000 0.000000}
    Signed-off-by: default avatarLI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
    e18dcd7d
simde-common.h 46.9 KB