Skip to content

Conversation

@jayrm
Copy link
Member

@jayrm jayrm commented Apr 22, 2018

Fix #875 for -gen gas -fpu sse where boolean variable to single/double conversion gives wrong sign.

@jayrm
Copy link
Member Author

jayrm commented Apr 22, 2018

When testing fbc with different math options, found this bug related to #875, but for a different reason. SSE emitter can't handle any results on FPU stack expect for a procedure return. Maybe not the best code gen, but was simplest to implement without messing with the IR. Uses the x86 boolean to float emitter proc int, then transfers to sse register.

@jayrm jayrm merged commit af3bc33 into freebasic:master Apr 24, 2018
@jayrm jayrm deleted the bugfix-875-sse branch April 24, 2018 00:05
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