brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · bbbdd45 Raw
38 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -mcpu=g5 | FileCheck %s -check-prefix=CHECK-NOVSX2; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu \3; RUN:          -mattr=+altivec -mattr=+vsx |  FileCheck %s4; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu \5; RUN:          -mattr=+altivec -mattr=-vsx |  FileCheck %s \6; RUN:          -check-prefix=CHECK-NOVSX7 8define void @test_float(ptr %A) {9; CHECK-LABEL: test_float10; CHECK-NOVSX-LABEL: test_float11	%tmp2 = load <4 x float>, ptr %A12	%tmp3 = fsub <4 x float> < float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00 >, %tmp213	store <4 x float> %tmp3, ptr %A14	ret void15 16; CHECK: xvnegsp17; CHECK: blr18; CHECK-NOVSX: vxor19; CHECK-NOVSX: blr20 21}22 23define void @test_double(ptr %A) {24; CHECK-LABEL: test_double25; CHECK-NOVSX-LABEL: test_double26	%tmp2 = load <2 x double>, ptr %A27	%tmp3 = fsub <2 x double> < double -0.000000e+00, double -0.000000e+00 >, %tmp228	store <2 x double> %tmp3, ptr %A29	ret void30 31; CHECK: xvnegdp32; CHECK: blr33; CHECK-NOVSX: fneg34; CHECK-NOVSX: fneg35; CHECK-NOVSX: blr36 37}38