LLVM test Transforms/InferFunctionAttrs/annotate contains two RUN
invokation (UNKNOWN and NVPTX lines) which involve a CHECK-NOT directive
with a variable not defined by the enabled CHECK prefixes. This commit
fixes that by:
- enabling CHECK prefix for unknown target with specialisation when it differs from other targets
- checking for absence of bcmp with any attribute for NVPTX
I don't think this test does what it's supposed to do for nvptx.
The CHECK-NVPTX: attributes will match at the end of the IR and this check will be looking for the function declarations way past the point where they were, so it will never trigger, even if NVPTX does declare bcmp with the wrong arguments.
You need to move the CHECK-NVPTX: attributes from line 9 to the end of this file.