MaskRay wrote:

@labrinea  @tmatheson-arm

Is this the expected error? zlib uses similar code. 
```
% cat neon.c
#include <arm_neon.h>
__attribute__((target("armv8-a,crc")))
uint64x2_t foo(uint64x2_t a, uint64x2_t b) {
  return veorq_u64(a, b);
}
% newclang --target=aarch64-linux-gnu -c neon.c
neon.c:5:10: error: always_inline function 'veorq_u64' requires target feature 
'outline-atomics', but would be inlined into function 'foo' that is compiled 
without support for 'outline-atomics'
    5 |   return veorq_u64(a, b);
      |          ^
neon.c:5:10: error: always_inline function 'veorq_u64' requires target feature 
'v8a', but would be inlined into function 'foo' that is compiled without 
support for 'v8a'
2 errors generated.
```

https://github.com/llvm/llvm-project/pull/95231
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to