summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/target-features-error-2.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-11-14 02:38:37 +0000
committerEric Christopher <echristo@gmail.com>2015-11-14 02:38:37 +0000
commitce836776664802fa636a579012e4addb02f996af (patch)
tree27da9d19d0098260b9fe3dc0b58835c7947229b3 /clang/test/CodeGen/target-features-error-2.c
parent7f5ff2175f68859e71ba2324190c8f0c8c3942e7 (diff)
downloadbcm5719-llvm-ce836776664802fa636a579012e4addb02f996af.tar.gz
bcm5719-llvm-ce836776664802fa636a579012e4addb02f996af.zip
Add support for the always_inline + target feature diagnostic to print
out the first missing target feature that's required and reword the diagnostic accordingly. llvm-svn: 253121
Diffstat (limited to 'clang/test/CodeGen/target-features-error-2.c')
-rw-r--r--clang/test/CodeGen/target-features-error-2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/target-features-error-2.c b/clang/test/CodeGen/target-features-error-2.c
index 66b8a46a4df..c23d152dcfb 100644
--- a/clang/test/CodeGen/target-features-error-2.c
+++ b/clang/test/CodeGen/target-features-error-2.c
@@ -3,5 +3,5 @@
#include <x86intrin.h>
int baz(__m256i a) {
- return _mm256_extract_epi32(a, 3); // expected-error {{function 'baz' and always_inline callee function '_mm256_extract_epi32' are required to have matching target features}}
+ return _mm256_extract_epi32(a, 3); // expected-error {{always_inline function '_mm256_extract_epi32' requires target feature 'sse4.2', but would be inlined into function 'baz' that is compiled without support for 'sse4.2'}}
}
OpenPOWER on IntegriCloud