aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Compiler.cpp
diff options
context:
space:
mode:
authorLuke Hutton <luke.hutton@arm.com>2025-07-16 07:33:40 +0100
committerGitHub <noreply@github.com>2025-07-16 07:33:40 +0100
commit5480fc6bb8ef6a6a895be7952d50d557116dcb38 (patch)
tree40ba61ba700dab07f9c1f77eca56746aa476b6f2 /clang/lib/AST/ByteCode/Compiler.cpp
parentdbb6ed76317a52ada7045611649e50c2afe51496 (diff)
downloadllvm-5480fc6bb8ef6a6a895be7952d50d557116dcb38.zip
llvm-5480fc6bb8ef6a6a895be7952d50d557116dcb38.tar.gz
llvm-5480fc6bb8ef6a6a895be7952d50d557116dcb38.tar.bz2
[mlir][tosa] Interpret boolean values correctly in cast folder (#147078)
Previously the cast folder would sign extend boolean values, leading "true" to be casted to a value of -1 instead of 1. This change ensures i1 values are zero extended, since i1 is used as a boolean value in TOSA. According to the TOSA spec, the result of a boolean cast with value "true" to another integer type should give a result of 1. Fixes https://github.com/llvm/llvm-project/issues/57951
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions