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
10 tmp_V2LLi
= __builtin_ia32_undef128();
13 // Make sure explicit attribute larger than builtin wins.
14 void goo(void) __attribute__((__min_vector_width__(256))) {
17 tmp_V2LLi
= __builtin_ia32_undef128();
20 // Make sure builtin larger than explicit attribute wins.
21 void hoo(void) __attribute__((__min_vector_width__(128))) {
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"