[OpenACC] Treat 'delete' as a valid clause during parsing in C++ mode
[llvm-project.git] / clang / test / CodeGen / X86 / x86-vector-width.c
bloba0b7e03920c4088579aa03c13104d4c5765ac2b0
1 // RUN: %clang_cc1 -triple i686-linux-gnu -target-cpu i686 -emit-llvm %s -o - | FileCheck %s
3 typedef signed long long V2LLi __attribute__((vector_size(16)));
4 typedef signed long long V4LLi __attribute__((vector_size(32)));
6 V2LLi ret_128(void);
7 V4LLi ret_256(void);
8 void arg_128(V2LLi);
9 void arg_256(V4LLi);
11 // Make sure return type forces a min-legal-width
12 V2LLi foo(void) {
13 return (V2LLi){ 0, 0 };
16 V4LLi goo(void) {
17 return (V4LLi){ 0, 0 };
20 // Make sure return type of called function forces a min-legal-width
21 void hoo(void) {
22 V2LLi tmp_V2LLi;
23 tmp_V2LLi = ret_128();
26 void joo(void) {
27 V4LLi tmp_V4LLi;
28 tmp_V4LLi = ret_256();
31 // Make sure arg type of called function forces a min-legal-width
32 void koo(void) {
33 V2LLi tmp_V2LLi;
34 arg_128(tmp_V2LLi);
37 void loo(void) {
38 V4LLi tmp_V4LLi;
39 arg_256(tmp_V4LLi);
42 // Make sure arg type of our function forces a min-legal-width
43 void moo(V2LLi x) {
47 void noo(V4LLi x) {
51 // CHECK: {{.*}}@foo{{.*}} #0
52 // CHECK: {{.*}}@goo{{.*}} #1
53 // CHECK: {{.*}}@hoo{{.*}} #0
54 // CHECK: {{.*}}@joo{{.*}} #1
55 // CHECK: {{.*}}@koo{{.*}} #0
56 // CHECK: {{.*}}@loo{{.*}} #1
57 // CHECK: {{.*}}@moo{{.*}} #0
58 // CHECK: {{.*}}@noo{{.*}} #1
60 // CHECK: #0 = {{.*}}"min-legal-vector-width"="128"
61 // CHECK: #1 = {{.*}}"min-legal-vector-width"="256"