Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Implement overflow forms of binary arithmetic #342

Merged
merged 2 commits into from
Mar 23, 2015
Merged

Implement overflow forms of binary arithmetic #342

merged 2 commits into from
Mar 23, 2015

Conversation

JosephTremoulet
Copy link
Contributor

Implement overflow forms of binary arithmetic

Map these to the appropriate LLVM intrinsics that detect overflow and compute results together.

Also annotate the invalid type/opcode combinations in the operator map (floats don't have bitwise operations or unsigned or overflow variants).

Closes #65

The two methods in each bring-up test currently failing on binary op overflow now fail on localAlloc instead.

Map these to the appropriate LLVM intrinsics that detect overflow and
compute results together.
Also annotate the invalid type/opcode combinations in the operator map
(floats don't have bitwise operations or unsigned or overflow variants).

Closes #65
@pgavlin
Copy link
Contributor

pgavlin commented Mar 23, 2015

LGTM.

@russellhadley
Copy link
Contributor

Green

JosephTremoulet added a commit that referenced this pull request Mar 23, 2015
Implement overflow forms of binary arithmetic
@JosephTremoulet JosephTremoulet merged commit 7caf615 into dotnet:master Mar 23, 2015
@JosephTremoulet JosephTremoulet deleted the ArithmeticOverflow branch March 23, 2015 23:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EH: Expand arithmetic overflow checks in reader
3 participants