aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/target-features-error-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/target-features-error-2.c')
-rw-r--r--test/CodeGen/target-features-error-2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/target-features-error-2.c b/test/CodeGen/target-features-error-2.c
new file mode 100644
index 000000000000..c23d152dcfb3
--- /dev/null
+++ b/test/CodeGen/target-features-error-2.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -S -verify -o -
+#define __MM_MALLOC_H
+#include <x86intrin.h>
+
+int baz(__m256i a) {
+ 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'}}
+}