Skip to content
  • Tony Jiang's avatar
    [PowerPC] Implement BE VSX load/store builtins - llvm portion. · 5f850cd1
    Tony Jiang authored
    This patch implements all the overloads for vec_xl_be and vec_xst_be. On BE,
    they behaves exactly the same with vec_xl and vec_xst, therefore they are
    simply implemented by defining a matching macro. On LE, they are implemented
    by defining new builtins and intrinsics. For int/float/long long/double, it
    is just a load (lxvw4x/lxvd2x) or store(stxvw4x/stxvd2x). For char/char/short,
    we also need some extra shuffling before or after call the builtins to get the
    desired BE order. For int128, simply call vec_xl or vec_xst.
    
    llvm-svn: 286967
    5f850cd1
Loading