Skip to content

x86: Avoid using DX register as divisor#175

Open
shattered wants to merge 1 commit intodavidgiven:masterfrom
shattered:_2d34b75b
Open

x86: Avoid using DX register as divisor#175
shattered wants to merge 1 commit intodavidgiven:masterfrom
shattered:_2d34b75b

Conversation

@shattered
Copy link
Contributor

C backend doesn't seem to support signed integers and fails the new test -- no idea how to fix that

@shattered
Copy link
Contributor Author

Is the C backend easily fixable? I can remove the test if not.

@davidgiven
Copy link
Owner

The C backend should absolutely support signed division. The signed-ness is a property of the operator, not the type; the code generated looks like:

i7 = (s4)i3 / (s4)i4;

Do you know what the operations are producing with the C backend? I wonder if the Cowgol signed-division rules are different to the C signed-division rules...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants