[PATCH] D46541: [CodeGen] Improve diagnostics related to target attributes

Gabor Buella via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 5 08:29:54 PDT 2018


GBuella added inline comments.


================
Comment at: test/CodeGen/target-features-error-2.c:39
 __m128d need_avx(__m128d a, __m128d b) {
   return _mm_cmp_sd(a, b, 0); // expected-error {{'__builtin_ia32_cmpsd' needs target feature avx}}
 }
----------------
craig.topper wrote:
> The 4 compare functions here are basically the same for the purpose of this check. What value do we get by testing all 4 of them?
Which four more specifically?


https://reviews.llvm.org/D46541





More information about the cfe-commits mailing list