Skip to content

Commit

Permalink
[LoongArch][clang] Use signed char vectors instead of char vector…
Browse files Browse the repository at this point in the history
…s for LSX and LASX builtins (llvm#114510)

`-flax-vector-conversions=none` does not allow an implicit conversion
from `signed char` vector to `char` vector, and we cannot remove
`signed`
from `v16i8` or `v32i8` because doing so will break our expectation with
`-fno-signed-char`.  So to make lsxintrin.h and lasxintrin.h work fine
with `-flax-vector-conversions=none`, we must use `signed char` instead
of `char`.
    
The change is just done via
    
    sed 's/V16c/V16Sc/g' -i BuiltinsLoongArchLSX.def
    sed 's/V32c/V32Sc/g' -i BuiltinsLoongArchLASX.def

Depends on llvm#114509.  Part of llvm#110834 fix.
  • Loading branch information
xry111 authored Nov 2, 2024
1 parent f1e1055 commit b885054
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 135 deletions.
Loading

0 comments on commit b885054

Please sign in to comment.