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
28 define <4 x float> @test2_float(<4 x float> %aa) #0 {
30 ; CHECK-LABEL: test2_float
31 ; CHECK-NOVSX-LABEL: test2_float
34 %0 = tail call <4 x float> @llvm.fabs.v4f32(<4 x float> %aa) #2
35 %sub = fsub <4 x float> <float -0.000000e+00, float -0.000000e+00,
36 float -0.000000e+00, float -0.000000e+00>, %0
42 ; CHECK-NOVSX: vspltisb
50 define <2 x double> @test_double(<2 x double> %aa) #0 {
52 ; CHECK-LABEL: test_double
53 ; CHECK-NOVSX-LABEL: test_double
56 %0 = tail call <2 x double> @llvm.fabs.v2f64(<2 x double> %aa) #2
60 ; Function Attrs: nounwind readnone
61 declare <2 x double> @llvm.fabs.v2f64(<2 x double>) #1
69 define <2 x double> @foo(<2 x double> %aa) #0 {
71 %0 = tail call <2 x double> @llvm.fabs.v2f64(<2 x double> %aa) #2
72 %sub = fsub <2 x double> <double -0.000000e+00, double -0.000000e+00>, %0