File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -749,7 +749,10 @@ const llvm::fltSemantics &FP80Type::getFloatSemantics() const {
749
749
llvm::TypeSize
750
750
FP80Type::getTypeSizeInBits (const mlir::DataLayout &dataLayout,
751
751
mlir::DataLayoutEntryListRef params) const {
752
- return llvm::TypeSize::getFixed (16 );
752
+ // The size of FP80Type should be 16 bytes, or 128 bits. The lower 80 bits
753
+ // take part in the value representation and the higher 48 bits are just
754
+ // paddings.
755
+ return llvm::TypeSize::getFixed (128 );
753
756
}
754
757
755
758
uint64_t FP80Type::getABIAlignment (const mlir::DataLayout &dataLayout,
@@ -770,7 +773,7 @@ const llvm::fltSemantics &FP128Type::getFloatSemantics() const {
770
773
llvm::TypeSize
771
774
FP128Type::getTypeSizeInBits (const mlir::DataLayout &dataLayout,
772
775
mlir::DataLayoutEntryListRef params) const {
773
- return llvm::TypeSize::getFixed (16 );
776
+ return llvm::TypeSize::getFixed (128 );
774
777
}
775
778
776
779
uint64_t FP128Type::getABIAlignment (const mlir::DataLayout &dataLayout,
You can’t perform that action at this time.
0 commit comments