summaryrefslogtreecommitdiff
path: root/test/CodeGen/target-builtin-error.c
blob: ee41277706aeea63ce8ddcc7708286ecc644dc3d (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -S -verify -o -
#define __MM_MALLOC_H

#include <x86intrin.h>

__m128d foo(__m128d a, __m128d b) {
  return __builtin_ia32_addsubps(b, a); // expected-error {{'__builtin_ia32_addsubps' needs target feature sse3}}
}