[OpenACC] Treat 'delete' as a valid clause during parsing in C++ mode
[llvm-project.git] / clang / test / CodeGen / X86 / x86-builtins-vector-width.c
blobdca3e5874ea9cfeb12fccb1f082f83e3069967fe
1 // RUN: %clang_cc1 -triple i686-linux-gnu -target-cpu i686 -emit-llvm %s -o - | FileCheck %s
3 typedef double V2LLi __attribute__((vector_size(16)));
4 typedef double V4LLi __attribute__((vector_size(32)));
6 // Make sure builtin forces a min-legal-width attribute
7 void foo(void) {
8 V2LLi tmp_V2LLi;
10 tmp_V2LLi = __builtin_ia32_undef128();
13 // Make sure explicit attribute larger than builtin wins.
14 void goo(void) __attribute__((__min_vector_width__(256))) {
15 V2LLi tmp_V2LLi;
17 tmp_V2LLi = __builtin_ia32_undef128();
20 // Make sure builtin larger than explicit attribute wins.
21 void hoo(void) __attribute__((__min_vector_width__(128))) {
22 V4LLi tmp_V4LLi;
24 tmp_V4LLi = __builtin_ia32_undef256();
27 // CHECK: foo{{.*}} #0
28 // CHECK: goo{{.*}} #1
29 // CHECK: hoo{{.*}} #1
31 // CHECK: #0 = {{.*}}"min-legal-vector-width"="128"
32 // CHECK: #1 = {{.*}}"min-legal-vector-width"="256"