Add Vector Compare Bounds Floating-Point
This commit is contained in:
parent
ccdfd7f7e6
commit
4f6c03e243
@ -4,7 +4,8 @@
|
|||||||
"llvm_prefix": "llvm.ppc.altivec.",
|
"llvm_prefix": "llvm.ppc.altivec.",
|
||||||
"number_info": {
|
"number_info": {
|
||||||
"unsigned": {},
|
"unsigned": {},
|
||||||
"signed": {}
|
"signed": {},
|
||||||
|
"float": {}
|
||||||
},
|
},
|
||||||
"width_info": {
|
"width_info": {
|
||||||
"128": { "width": "" }
|
"128": { "width": "" }
|
||||||
@ -23,6 +24,13 @@
|
|||||||
"llvm": "vmhraddshs",
|
"llvm": "vmhraddshs",
|
||||||
"ret": "s16",
|
"ret": "s16",
|
||||||
"args": ["0", "0", "0"]
|
"args": ["0", "0", "0"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intrinsic": "cmpb",
|
||||||
|
"width": [128],
|
||||||
|
"llvm": "vcmpbfp",
|
||||||
|
"ret": "s32",
|
||||||
|
"args": ["f32", "f32"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,11 @@ pub fn find(name: &str) -> Option<Intrinsic> {
|
|||||||
output: &::I16x8,
|
output: &::I16x8,
|
||||||
definition: Named("llvm.ppc.altivec.vmhraddshs")
|
definition: Named("llvm.ppc.altivec.vmhraddshs")
|
||||||
},
|
},
|
||||||
|
"_vec_cmpb" => Intrinsic {
|
||||||
|
inputs: { static INPUTS: [&'static Type; 2] = [&::F32x4, &::F32x4]; &INPUTS },
|
||||||
|
output: &::I32x4,
|
||||||
|
definition: Named("llvm.ppc.altivec.vcmpbfp")
|
||||||
|
},
|
||||||
_ => return None,
|
_ => return None,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user