diff options
author | Samuel Pitoiset <[email protected]> | 2018-09-14 12:52:39 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-09-17 15:18:37 +0200 |
commit | cd76ce00780c277e04cef52fef10b0e9c714712b (patch) | |
tree | a3a650234de63afeae29034a6aee56889c9617d0 | |
parent | fc398f4d6769f4537cb6fe52b643d28d9cb1d0b0 (diff) |
ac: add 16-bit support to ac_build_bitfield_reverse()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/common/ac_llvm_build.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 98635ec25af..ab0ba09c83a 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -2181,6 +2181,11 @@ LLVMValueRef ac_build_bitfield_reverse(struct ac_llvm_context *ctx, (LLVMValueRef []) { src0 }, 1, AC_FUNC_ATTR_READNONE); break; + case 16: + result = ac_build_intrinsic(ctx, "llvm.bitreverse.i16", ctx->i16, + (LLVMValueRef []) { src0 }, 1, + AC_FUNC_ATTR_READNONE); + break; default: unreachable(!"invalid bitsize"); break; |