1 // RUN: %clang_cc1 -flax-vector-conversions=none -triple powerpc64le-linux-gnu -S -O0 -o - %s -target-feature +altivec -target-feature +vsx | FileCheck %s -check-prefix=CHECK -check-prefix=VSX
2 // RUN: %clang_cc1 -flax-vector-conversions=none -triple powerpc-linux-gnu -S -O0 -o - %s -target-feature +altivec -target-feature -vsx | FileCheck %s
4 // REQUIRES: powerpc-registered-target
10 vector
float test1(vector
int x
) {
16 vector
float test2(vector
unsigned int x
) {
22 vector
float test3(vector
signed long long x
) {
27 vector
float test4(vector
unsigned long long x
) {
34 vector
float test5(vector
int x
) {
35 return vec_vcfsx(x
, 0);
40 vector
float test6(vector
unsigned int x
) {
41 return vec_vcfux(x
, 0);
46 vector
int test7(vector
float x
) {
52 vector
signed long long test8(vector
double x
) {
60 vector
int test9(vector
float x
) {
61 return vec_vctsxs(x
, 0);
64 // CHECK-LABEL: test10
66 vector
unsigned test10(vector
float x
) {
72 vector
unsigned long long test11(vector
double x
) {
78 // CHECK-LABEL: test12
80 vector
unsigned test12(vector
float x
) {
81 return vec_vctuxs(x
, 0);