1 ; RUN: llc -enable-ppc-gen-scalar-mass -verify-machineinstrs -O3 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck --check-prefix=CHECK-LNX %s
2 ; RUN: llc -enable-ppc-gen-scalar-mass -verify-machineinstrs -O3 -mtriple=powerpc-ibm-aix-xcoff < %s | FileCheck --check-prefix=CHECK-AIX %s
4 declare float @llvm.pow.f32 (float, float);
5 declare double @llvm.pow.f64 (double, double);
7 ; afn flag powf with 0.25
8 define float @llvmintr_powf_f32_afn025(float %a) {
9 ; CHECK-LNX-LABEL: llvmintr_powf_f32_afn025:
10 ; CHECK-LNX: bl __xl_powf
13 ; CHECK-AIX-LABEL: llvmintr_powf_f32_afn025:
14 ; CHECK-AIX: bl .__xl_powf[PR]
17 %call = tail call afn float @llvm.pow.f32(float %a, float 2.500000e-01)
21 ; afn flag pow with 0.25
22 define double @llvmintr_pow_f64_afn025(double %a) {
23 ; CHECK-LNX-LABEL: llvmintr_pow_f64_afn025:
24 ; CHECK-LNX: bl __xl_pow
27 ; CHECK-AIX-LABEL: llvmintr_pow_f64_afn025:
28 ; CHECK-AIX: bl .__xl_pow[PR]
31 %call = tail call afn double @llvm.pow.f64(double %a, double 2.500000e-01)
35 ; afn flag powf with 0.75
36 define float @llvmintr_powf_f32_afn075(float %a) {
37 ; CHECK-LNX-LABEL: llvmintr_powf_f32_afn075:
38 ; CHECK-LNX: bl __xl_powf
41 ; CHECK-AIX-LABEL: llvmintr_powf_f32_afn075:
42 ; CHECK-AIX: # %bb.0: # %entry
43 ; CHECK-AIX: bl .__xl_powf[PR]
46 %call = tail call afn float @llvm.pow.f32(float %a, float 7.500000e-01)
50 ; afn flag pow with 0.75
51 define double @llvmintr_pow_f64_afn075(double %a) {
52 ; CHECK-LNX-LABEL: llvmintr_pow_f64_afn075:
53 ; CHECK-LNX: bl __xl_pow
56 ; CHECK-AIX-LABEL: llvmintr_pow_f64_afn075:
57 ; CHECK-AIX: bl .__xl_pow[PR]
60 %call = tail call afn double @llvm.pow.f64(double %a, double 7.500000e-01)
64 ; afn flag powf with 0.50
65 define float @llvmintr_powf_f32_afn050(float %a) {
66 ; CHECK-LNX-LABEL: llvmintr_powf_f32_afn050:
67 ; CHECK-LNX: # %bb.0: # %entry
68 ; CHECK-LNX: bl __xl_powf
71 ; CHECK-AIX-LABEL: llvmintr_powf_f32_afn050:
72 ; CHECK-AIX: # %bb.0: # %entry
73 ; CHECK-AIX: bl .__xl_powf[PR]
76 %call = tail call afn float @llvm.pow.f32(float %a, float 5.000000e-01)
80 ; afn flag pow with 0.50
81 define double @llvmintr_pow_f64_afn050(double %a) {
82 ; CHECK-LNX-LABEL: llvmintr_pow_f64_afn050:
83 ; CHECK-LNX: # %bb.0: # %entry
84 ; CHECK-LNX: bl __xl_pow
87 ; CHECK-AIX-LABEL: llvmintr_pow_f64_afn050:
88 ; CHECK-AIX: # %bb.0: # %entry
89 ; CHECK-AIX: bl .__xl_pow[PR]
92 %call = tail call afn double @llvm.pow.f64(double %a, double 5.000000e-01)