Displaying 1 result from an estimated 1 matches for "signmaskd".
2014 Apr 03
3
[LLVMdev] SIMD Projects with LLVM
..., which extracts the sign bits of the 2 doubles in
a <2 x double> and returns them as an int32. We would
like to use the icmp slt as the LLVM IR operation for this,
but have a problem when we bitcast the <2 x i1> vector to i2,
it seems. We use the following LLVM IR code.
define i32 @signmaskd(<2 x double> %a) alwaysinline #5
{
%bits = bitcast <2 x double> %a to <2 x i64>
%b = icmp slt <2 x i64> %bits, zeroinitializer
%c = bitcast <2 x i1> %b to i2
%result = zext i2 %c to i32
ret i32 %result
}
Unfortunately, we only g...