1 ; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=+vsx -O1 -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
3 @vf = global <4 x float> <float -1.500000e+00, float 2.500000e+00, float -3.500000e+00, float 4.500000e+00>, align 16
4 @vd = global <2 x double> <double 3.500000e+00, double -7.500000e+00>, align 16
5 @vf_res = common global <4 x float> zeroinitializer, align 16
6 @vd_res = common global <2 x double> zeroinitializer, align 16
10 %0 = load <4 x float>, ptr @vf, align 16
11 %1 = tail call <4 x float> @llvm.ppc.vsx.xvdivsp(<4 x float> %0, <4 x float> %0)
12 store <4 x float> %1, ptr @vf_res, align 16
18 define void @test2() {
20 %0 = load <2 x double>, ptr @vd, align 16
21 %1 = tail call <2 x double> @llvm.ppc.vsx.xvdivdp(<2 x double> %0, <2 x double> %0)
22 store <2 x double> %1, ptr @vd_res, align 16
28 declare <2 x double> @llvm.ppc.vsx.xvdivdp(<2 x double>, <2 x double>)
29 declare <4 x float> @llvm.ppc.vsx.xvdivsp(<4 x float>, <4 x float>)