llvm/test/CodeGen/AArch64/tailcall_misched_graph.ll: s/REQUIRE/REQUIRES/
[oota-llvm.git] / test / CodeGen / PowerPC / vsx-div.ll
1 ; RUN: llc -mcpu=pwr7 -mattr=+vsx -O1 -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
2
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
7
8 define void @test1() {
9 entry:
10   %0 = load <4 x float>, <4 x float>* @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, <4 x float>* @vf_res, align 16
13   ret void
14 }
15 ; CHECK-LABEL: @test1
16 ; CHECK: xvdivsp
17
18 define void @test2() {
19 entry:
20   %0 = load <2 x double>, <2 x double>* @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, <2 x double>* @vd_res, align 16
23   ret void
24 }
25 ; CHECK-LABEL: @test2
26 ; CHECK: xvdivdp
27
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>)