Clang Project

clang_source_code/test/CodeGen/pr26099.c
1// RUN: %clang_cc1 -ffreestanding %s -triple=i686-apple-darwin -target-feature +mmx -emit-llvm -o - -Wall -Werror
2// RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +mmx -emit-llvm -o - -Wall -Werror
3// REQUIRES: asserts
4
5#include <x86intrin.h>
6
7int __attribute__ ((__vector_size__ (8))) b;
8
9void bar(int a)
10{
11  b = __builtin_ia32_vec_init_v2si (0, a);
12}