gallium/radeon: fix argument type of llvm.{cttz,ctlz}.i32 intrinsics

Caught by R600_DEBUG=checkir (next commit).

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Nicolai Hähnle 2016-09-29 14:55:51 +02:00
parent 1b6fb88ab2
commit 1e9476e8c5
1 changed files with 2 additions and 2 deletions

View File

@ -1636,7 +1636,7 @@ static void emit_lsb(const struct lp_build_tgsi_action *action,
*
* The hardware already implements the correct behavior.
*/
lp_build_const_int32(gallivm, 1)
LLVMConstInt(LLVMInt1TypeInContext(gallivm->context), 1, 0)
};
emit_data->output[emit_data->chan] =
@ -1655,7 +1655,7 @@ static void emit_umsb(const struct lp_build_tgsi_action *action,
LLVMValueRef args[2] = {
emit_data->args[0],
/* Don't generate code for handling zero: */
lp_build_const_int32(gallivm, 1)
LLVMConstInt(LLVMInt1TypeInContext(gallivm->context), 1, 0)
};
LLVMValueRef msb =