Closed
Description
I am refactoring the code in #1033 by replacing the manually implemented switch-case statements with DataLayout::getTypeSizeInBits
.
During this process, I noticed that DataLayout::getTypeSizeInBits(!cir.long_double<!cir.f80>)
returns 16 bits when I expected it to return 80 bits. This discrepancy is causing the test cases to fail.
For reference, you can find the relevant code in ClangIR
clangir/clang/lib/CIR/Dialect/IR/CIRTypes.cpp
Lines 749 to 754 in fca6e2c
and the LLVM IR code
clangir/llvm/include/llvm/IR/DataLayout.h
Lines 622 to 674 in fca6e2c
For additional context, please see #536 .
Metadata
Metadata
Assignees
Labels
No labels