OSDN Git Service

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)
commitf3a3d439652b45b3e38e15ba785105c38da480dd
tree22e1ab49c57cdcda3060ac76944a5a84f37683e0
parent4aa20a4a6d28ea20124bc7658994640f6e5af7ee
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356085 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsMips.td
test/CodeGen/Mips/msa/immediates.ll
test/Verifier/Mips/intrinsic-immarg.ll [new file with mode: 0644]
test/Verifier/Mips/lit.local.cfg [new file with mode: 0644]