]> granicus.if.org Git - clang/commit
[mips] Check argument for __builtin_msa_ctcmsa / __builtin_msa_cfcmsa
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 29 May 2019 14:59:32 +0000 (14:59 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 29 May 2019 14:59:32 +0000 (14:59 +0000)
commit3ebd7f5579e6d4cd68139c7c709d58cf0c5f8774
tree62a2016d47acd9c65d91f45e6e7ed20bb6cb4cfd
parente420b2015caea78d84601f697fbc33b6116ec622
[mips] Check argument for __builtin_msa_ctcmsa / __builtin_msa_cfcmsa

The `__builtin_msa_ctcmsa` and `__builtin_msa_cfcmsa` builtins are mapped
to the `ctcmsa` and `cfcmsa` instructions respectively. While MSA
control registers have indexes in 0..7 range, the instructions accept
register index in 0..31 range [1].

[1] MIPS Architecture for Programmers Volume IV-j:
    The MIPS64 SIMD Architecture Module
https://www.mips.com/?do-download=the-mips64-simd-architecture-module

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361967 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/CodeGen/builtins-mips-msa-error.c