[all-commits] [llvm/llvm-project] 1fbbf4: [clang][bytecode] Pass (float) BitWidth to DoBitCa...
Timm Baeder via All-commits
all-commits at lists.llvm.org
Sun Dec 8 09:54:30 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1fbbf4c418bc4945839a70fe2849cbe6fbcc3d66
https://github.com/llvm/llvm-project/commit/1fbbf4c418bc4945839a70fe2849cbe6fbcc3d66
Author: Timm Baeder <tbaeder at redhat.com>
Date: 2024-12-08 (Sun, 08 Dec 2024)
Changed paths:
M clang/lib/AST/ByteCode/BitcastBuffer.h
M clang/lib/AST/ByteCode/Interp.h
M clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp
M clang/lib/AST/ByteCode/InterpBuiltinBitCast.h
M clang/test/AST/ByteCode/builtin-bit-cast-long-double.cpp
Log Message:
-----------
[clang][bytecode] Pass (float) BitWidth to DoBitCast (#119119)
In certain cases (i.e. long double on x86), the bit with we get from the
floating point semantics is different than the type size we compute for
the BitCast instruction. Pass this along to DoBitCast, so in there we
can check only the relevant bits for being initialized.
This also fixes a weirdness we still had in DoBitCast.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list