diff options
author | Justin Bogner <mail@justinbogner.com> | 2024-11-04 05:23:43 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-04 05:23:43 -0800 |
commit | 45ae7d166ddf7265eddcfe9d0969a3408a2c7384 (patch) | |
tree | 8436bc03829beee0a943f99b9bb058b11c7b029a /clang/tools/include-mapping/cppreference_parser.py | |
parent | ee29eb19f01bb6a0622e3e5112760228d0944188 (diff) | |
download | llvm-45ae7d166ddf7265eddcfe9d0969a3408a2c7384.zip llvm-45ae7d166ddf7265eddcfe9d0969a3408a2c7384.tar.gz llvm-45ae7d166ddf7265eddcfe9d0969a3408a2c7384.tar.bz2 |
[SPIRV] Fix assert in `getOrCreateBaseRegister` for `i32 -1` (#114630)
When trying to create a const inst from a 32 bit signed value, we don't
want to sign-extend it to 64 bits, as the resulting value won't actually
fit in an `i32` if it was negative.
This fixes crashes in the following two tests after the APInt
constructor asserts were enabled in #114539:
```
Failed Tests (2):
LLVM :: CodeGen/SPIRV/transcoding/RelationalOperators.ll
LLVM :: CodeGen/SPIRV/uitofp-with-bool.ll
```
Diffstat (limited to 'clang/tools/include-mapping/cppreference_parser.py')
0 files changed, 0 insertions, 0 deletions