You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specification/profiles/Adaptive_Profile.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -760,9 +760,14 @@ LLVM instructions must be supported:
760
760
|`fsub`| Subtracts two floating-point values. ||
761
761
|`fmul`| Multiplies two floating-point values. ||
762
762
|`fdiv`| Divides two floating-point values. | Division by zero leads to undefined behavior, no support for `NaN`. |
763
+
|`frem`| Returns the remainder from the division of its two floating-point operands. | Division by zero leads to undefined behavior, no support for `NaN`. |
|`fpext .. to`| Casts a value of floating-point type to a larger floating-point type. | May be used at any point in the program if classical computations on both the input and the output type are supported. May only be used as part of a call to an output recording function if computations on the output type are not supported. |
765
766
|`fptrunc .. to`| Casts a value of floating-point type to a smaller floating-point type. | May be used at any point in the program if classical computations on both the input and the output type are supported. May only be used as part of a call to an output recording function if computations on the output type are not supported. |
767
+
|`fptoui`| Converts a value of floating-point type to an unsigned integer type value. | May be used at any point in the program if classical computations on both the input and the output type are supported. |
768
+
|`fptosi`| Converts a value of floating-point type to a signed integer type value. | May be used at any point in the program if classical computations on both the input and the output type are supported. |
769
+
|`uitofp`| Converts a value as an unsigned integer to the target floating-point type. | May be used at any point in the program if classical computations on both the input and the output type are supported. |
770
+
|`sitofp`| Converts a value as a signed integer to the target floating-point type. | May be used at any point in the program if classical computations on both the input and the output type are supported. |
766
771
767
772
If the backend chooses to support multiple target branching, the following LLVM
768
773
instruction must be supported:
@@ -800,7 +805,7 @@ additional runtime function must be available:
|__quantum__rt__float_record_output|`void(f64,ptr)`| Records a floating-point value in the generated output. The second parameter defines the string label for the value. Depending on the output schema, the label is included in the output or omitted. |
808
+
|__quantum__rt__double_record_output|`void(double,ptr)`| Records a floating-point value in the generated output. The second parameter defines the string label for the value. Depending on the output schema, the label is included in the output or omitted. |
0 commit comments