diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-05-24 20:29:15 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-05-25 23:43:45 +0200 |
| commit | 97816e3cb826b64df578baa72781caba93252fd0 (patch) | |
| tree | a113dc2423916bd14066156855a2af6ecad2b7f3 /src/Module.zig | |
| parent | 39ebfedd2bea7ebb8630f8593ae59538969bfea7 (diff) | |
| download | zig-97816e3cb826b64df578baa72781caba93252fd0.tar.gz zig-97816e3cb826b64df578baa72781caba93252fd0.zip | |
aarch64: check lo/cc flag for unsigned sub_with_overflow
With this change, we are now correctly lowering `sub_with_overflow`
for signed and unsigned integers of register-sized integers (32-
or 64-bit precisely). We also match LLVM's behavior and so, the
condition flags we now set are:
* unsigned:
- `add_with_overflow`: `hs`/`cs` (carry set)
- `sub_with_overflow`: `lo`/`cc` (carry clear)
* signed:
- `add_with_overflow`/`sub_with_overflow`: `vs` (overflow)
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions
