Add support for Vector 2 Raised to the Exponent Estimate Float on PowerPC

This commit is contained in:
Luca Barbato 2017-08-04 00:19:58 +00:00
parent f6f828c670
commit 03a2aea4e9
2 changed files with 12 additions and 0 deletions

View file

@ -226,6 +226,13 @@
"llvm": "vmaddfp",
"ret": "f32",
"args": ["0", "0", "0"]
},
{
"intrinsic": "expte",
"width": [128],
"llvm": "vexptefp",
"ret": "f32",
"args": ["0"]
}
]
}

View file

@ -402,6 +402,11 @@ pub fn find(name: &str) -> Option<Intrinsic> {
output: &::F32x4,
definition: Named("llvm.ppc.altivec.vmaddfp")
},
"_vec_expte" => Intrinsic {
inputs: { static INPUTS: [&'static Type; 1] = [&::F32x4]; &INPUTS },
output: &::F32x4,
definition: Named("llvm.ppc.altivec.vexptefp")
},
_ => return None,
})
}