summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/pr26099.c
blob: 15b73b832e9d813a4e64cd7e924a21fcc928d9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -ffreestanding %s -triple=i686-apple-darwin -target-feature +mmx -emit-llvm -o - -Wall -Werror
// RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +mmx -emit-llvm -o - -Wall -Werror
// REQUIRES: asserts

#include <x86intrin.h>

int __attribute__ ((__vector_size__ (8))) b;

void bar(int a)
{
  b = __builtin_ia32_vec_init_v2si (0, a);
}