1 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu \
2 ; RUN: -mattr=+altivec -mattr=+vsx | FileCheck %s
3 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu \
4 ; RUN: -mattr=+altivec -mattr=-vsx | FileCheck %s \
5 ; RUN: -check-prefix=CHECK-NOVSX
7 define <4 x float> @test_float(<4 x float> %aa) #0 {
9 ; CHECK-LABEL: test_float
10 ; CHECK-NOVSX-LABEL: test_float
11 ; CHECK-NOVSX-LABEL: test_float
14 %0 = tail call <4 x float> @llvm.fabs.v4f32(<4 x float> %aa) #2
17 ; Function Attrs: nounwind readnone
18 declare <4 x float> @llvm.fabs.v4f32(<4 x float>) #1
22 ; CHECK-NOVSX: vspltisb
27 define <4 x float> @test2_float(<4 x float> %aa) #0 {
29 ; CHECK-LABEL: test2_float
30 ; CHECK-NOVSX-LABEL: test2_float
33 %0 = tail call <4 x float> @llvm.fabs.v4f32(<4 x float> %aa) #2
34 %sub = fsub <4 x float> <float -0.000000e+00, float -0.000000e+00,
35 float -0.000000e+00, float -0.000000e+00>, %0
41 ; CHECK-NOVSX: vspltisb
46 define <2 x double> @test_double(<2 x double> %aa) #0 {
48 ; CHECK-LABEL: test_double
49 ; CHECK-NOVSX-LABEL: test_double
52 %0 = tail call <2 x double> @llvm.fabs.v2f64(<2 x double> %aa) #2
56 ; Function Attrs: nounwind readnone
57 declare <2 x double> @llvm.fabs.v2f64(<2 x double>) #1
65 define <2 x double> @foo(<2 x double> %aa) #0 {
67 %0 = tail call <2 x double> @llvm.fabs.v2f64(<2 x double> %aa) #2
68 %sub = fsub <2 x double> <double -0.000000e+00, double -0.000000e+00>, %0