20 lines · c
1// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -target-feature +altivec -target-feature +vsx -fsyntax-only -verify=expected,both %s2// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -target-feature +altivec -target-feature -vsx -fsyntax-only -verify=expected,both %s3// RUN: %clang_cc1 -triple=powerpc-ibm-aix -target-feature +altivec -fsyntax-only -verify=expected,both %s4// RUN: %clang_cc1 -triple=powerpc64-ibm-aix -target-feature +altivec -target-feature -vsx -fsyntax-only -verify=expected,both %s5 6// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -target-feature +altivec -target-feature +vsx -fsyntax-only -verify=expected,both -fexperimental-new-constant-interpreter %s7// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -target-feature +altivec -target-feature -vsx -fsyntax-only -verify=expected,both -fexperimental-new-constant-interpreter %s8// RUN: %clang_cc1 -triple=powerpc-ibm-aix -target-feature +altivec -fsyntax-only -verify=expected,both -fexperimental-new-constant-interpreter %s9// RUN: %clang_cc1 -triple=powerpc64-ibm-aix -target-feature +altivec -target-feature -vsx -fsyntax-only -verify=expected,both -fexperimental-new-constant-interpreter %s10 11// both-no-diagnostics.12 13/// From test/Parser/altivec.c14vector char v1 = (vector char)((vector int)(1, 2, 3, 4));15vector char v2 = (vector char)((vector float)(1.0f, 2.0f, 3.0f, 4.0f));16vector char v3 = (vector char)((vector int)('a', 'b', 'c', 'd'));17vector int v4 = (vector int)(1, 2, 3, 4);18vector float v5 = (vector float)(1.0f, 2.0f, 3.0f, 4.0f);19vector char v6 = (vector char)((vector int)(1+2, -2, (int)(2.0 * 3), -(5-3)));20