Add support for Vector Multiply Add Float on PowerPC
This commit is contained in:
parent
c3041e8b9e
commit
f6f828c670
@ -219,6 +219,13 @@
|
||||
"llvm": "vsumsws",
|
||||
"ret": "s32",
|
||||
"args": ["0", "0"]
|
||||
},
|
||||
{
|
||||
"intrinsic": "madd",
|
||||
"width": [128],
|
||||
"llvm": "vmaddfp",
|
||||
"ret": "f32",
|
||||
"args": ["0", "0", "0"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -397,6 +397,11 @@ pub fn find(name: &str) -> Option<Intrinsic> {
|
||||
output: &::I32x4,
|
||||
definition: Named("llvm.ppc.altivec.vsumsws")
|
||||
},
|
||||
"_vec_madd" => Intrinsic {
|
||||
inputs: { static INPUTS: [&'static Type; 3] = [&::F32x4, &::F32x4, &::F32x4]; &INPUTS },
|
||||
output: &::F32x4,
|
||||
definition: Named("llvm.ppc.altivec.vmaddfp")
|
||||
},
|
||||
_ => return None,
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user