Mips: Add ImmArg to intrinsics
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 13 Mar 2019 19:07:59 +0000 (19:07 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 13 Mar 2019 19:07:59 +0000 (19:07 +0000)
commit88dc015a92dc441f94cfff8b3f10c19617bc71d6
treebdf3cf1ea3be5c4ba7ec1e91a752ced5a94b9418
parente15cd7909b2840bb0e26ee54f09894660d809476
Mips: Add ImmArg to intrinsics

I found these by asserting in clang for any GCCBuiltin that doesn't
require mangling and requires a constant for the builtin. This means
that intrinsics are missing which don't use GCCBuiltin, don't have
builtins defined in clang, or were missing the constant annotation in
the builtin definition.

I'm not sure what's going on with the immediates.ll test. It seems to
be intended to test invalid cases like this, but then tries to handle
some of them anyway. I've moved the cases that were inconsistent with
the GCCBuiltin definition so they don't test the codegen anymore.

llvm-svn: 356085
llvm/include/llvm/IR/IntrinsicsMips.td
llvm/test/CodeGen/Mips/msa/immediates.ll
llvm/test/Verifier/Mips/intrinsic-immarg.ll [new file with mode: 0644]
llvm/test/Verifier/Mips/lit.local.cfg [new file with mode: 0644]