1 // RUN: %clang_cc1 -flax-vector-conversions=none -target-feature +vsx -triple powerpc64-unknown-unknown -emit-llvm %s \
2 // RUN: -o - | FileCheck %s
6 // CHECK-LABEL: @_Z5test1Dv8_tS_
7 // CHECK: @llvm.ppc.altivec.vcmpequh.p
8 bool test1(vector
unsigned short v1
, vector
unsigned short v2
) {
12 // CHECK-LABEL: @_Z5test2Dv2_mS_Dv2_lS0_Dv2_yS1_Dv2_xS2_Dv2_dS3_
13 bool test2(vector
unsigned long v1
, vector
unsigned long v2
,
14 vector
long v3
, vector
long v4
,
15 vector
unsigned long long v5
, vector
unsigned long long v6
,
16 vector
long long v7
, vector
long long v8
,
17 vector
double v9
, vector
double v10
) {
18 // CHECK: @llvm.ppc.altivec.vcmpequd.p
21 // CHECK: @llvm.ppc.altivec.vcmpequd.p
24 // CHECK: @llvm.ppc.altivec.vcmpequd.p
27 // CHECK: @llvm.ppc.altivec.vcmpequd.p
30 // CHECK: @llvm.ppc.vsx.xvcmpeqdp.p