Skip to content

Add frem, fptoui, uitofp instructions to QIR simulators#3268

Open
orpuente-MS wants to merge 1 commit into
mainfrom
oscarpuente/add-new-fp-instructions-to-bytecode
Open

Add frem, fptoui, uitofp instructions to QIR simulators#3268
orpuente-MS wants to merge 1 commit into
mainfrom
oscarpuente/add-new-fp-instructions-to-bytecode

Conversation

@orpuente-MS
Copy link
Copy Markdown
Contributor

This PR adds support for the frem, fptoui, and uitofp instructions to the QIR simulators to handle the codegen changes in #3187 .

("fsub", 3.0, 10.0, -7.0),
("fmul", 6.0, 7.0, 42.0),
("fdiv", 8.0, 2.0, 4.0),
("frem", 8.0, 2.0, 0.0),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have test cases where divisor is 0 to make sure it fails gracefully?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also would be nice to test fptoui with negative floats

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