================
@@ -24,3 +24,27 @@ int test_strex(char *addr) {
   res |= __builtin_arm_strex(42, (long long *)addr); // expected-error 
{{address argument to load or store exclusive builtin must be a pointer to 1,2 
or 4 byte type}}
   return res;
 }
+
+int test_ldrexd(char *addr) {
+  int sum = 0;
+  sum += __builtin_arm_ldrexd(addr); // expected-error {{load and store 
exclusive builtins are not available on this architecture}}
----------------
statham-arm wrote:

It's a shame that this case reuses the error message that claims _no_ 
load/store exclusives are available. I think it might be better to make a 
separate error message that adds "8-byte" to the wording, and use that when 
your reduced `Mask` is zero but the original `getARMLDREXMask()` was not.

https://github.com/llvm/llvm-project/pull/164919
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to