ac: fix ac_find_lsb() for 16-bit integer type
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
b16dffff23
commit
7a088d1ac8
|
@ -2944,6 +2944,8 @@ LLVMValueRef ac_find_lsb(struct ac_llvm_context *ctx,
|
|||
|
||||
if (src0_bitsize == 64) {
|
||||
lsb = LLVMBuildTrunc(ctx->builder, lsb, ctx->i32, "");
|
||||
} else if (src0_bitsize == 16) {
|
||||
lsb = LLVMBuildSExt(ctx->builder, lsb, ctx->i32, "");
|
||||
}
|
||||
|
||||
/* TODO: We need an intrinsic to skip this conditional. */
|
||||
|
|
Loading…
Reference in New Issue