xref: /llvm-project/clang/test/CodeGen/target-builtin-error.c (revision 9864269a0d6ded43fe60338aff4f9627d2a74f59)
1 // RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -S -verify -o -
2 #define __MM_MALLOC_H
3 
4 #include <x86intrin.h>
5 
foo(__m128 a,__m128 b)6 __m128 foo(__m128 a, __m128 b) {
7   return __builtin_ia32_addsubps(b, a); // expected-error {{'__builtin_ia32_addsubps' needs target feature sse3}}
8 }
9