// { dg-do compile } // { dg-additional-options "-std=gnu++20" } template void CopyBytes(From from, To to) { __builtin_memcpy(to, from, kBytes); } template void CopySameSize(From *from, To to) { CopyBytes(from, to); } template using MakeUnsigned = char; template struct Simd { using T = Lane; static constexpr int kPrivateLanes = N; template using Rebind = Simd; }; template using TFromD = D::T; template using Rebind = D::template Rebind; template using RebindToUnsigned = Rebind, D>; template struct Vec128 { using PrivateT = T; static constexpr int kPrivateN = 6; T raw[16]; }; template using DFromV = Simd; template Vec128, D::kPrivateLanes> Zero(D); template using VFromD = decltype(Zero(D())); template VFromD BitCast(D, VFrom v) { VFromD to; CopySameSize(&v, to.raw); return to; } template Vec128 And(Vec128 b) { Vec128 a; DFromV d; RebindToUnsigned du; auto au(a); auto bu = BitCast(du, b); for (int i = 0; i < N; ++i) au.raw[i] &= bu.raw[i]; return au; } void Or(Vec128); template void IfVecThenElse(Vec128 yes) { Vec128 __trans_tmp_2 = And(yes); Or(__trans_tmp_2); } template void IfThenElseZero(Vec128 yes) { IfVecThenElse(yes); } Vec128 Abs_a; char MaskedAbs___trans_tmp_5; void MaskedAbs() { Vec128 __trans_tmp_4; for (int i = 0; i < 16; ++i) { MaskedAbs___trans_tmp_5 = Abs_a.raw[i] ? -Abs_a.raw[i] : 0; Abs_a.raw[i] = MaskedAbs___trans_tmp_5; } __trans_tmp_4 = Abs_a; Vec128 __trans_tmp_3 = __trans_tmp_4; IfThenElseZero(__trans_tmp_3); }