[clang] [X86][CFE] Correct parameter type of _cmpccxadd_epi64 (PR #114367)

Freddy Ye via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 31 01:00:32 PDT 2024


================
@@ -10,3 +10,7 @@ int test_cmpccxadd32(void *__A, int __B, int __C) {
 long long test_cmpccxadd64(void *__A, long long __B, long long __C) {
   return _cmpccxadd_epi64(__A, __B, __C, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}}
 }
+
+long long test_cmpccxadd64_2(int *__A, long long __B, long long __C) {
+  return _cmpccxadd_epi64(__A, __B, __C, 3); // expected-error {{incompatible pointer types passing 'int *' to parameter of type 'long long *'}}
----------------
FreddyLeaf wrote:

yes, [f115369](https://github.com/llvm/llvm-project/pull/114367/commits/f1153692284748c620ef26992b6947140aa690d2)

https://github.com/llvm/llvm-project/pull/114367


More information about the cfe-commits mailing list