Skip to content

Commit

Permalink
Add cm_cl builtin for fdiv_ieee
Browse files Browse the repository at this point in the history
.
  • Loading branch information
igorban-intel authored and igcbot committed Jul 19, 2024
1 parent 4a09bac commit 482b697
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ template <typename T> T __cm_cl_powr(T src0, T src1, bool use_fast);
template <typename T> T __cm_cl_sin(T src, bool use_fast);
template <typename T> T __cm_cl_cos(T src, bool use_fast);

template <typename T> T __cm_cl_fdiv_ieee(T src0, T src1);
template <typename T> T __cm_cl_rsqrt(T src);

vector_impl<uint32_t, 3> __cm_cl_local_id();
Expand Down
17 changes: 17 additions & 0 deletions IGC/VectorCompiler/CMCL/lib/Support/TranslationDescription.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,23 @@
]
}
},
"FDiv": {
"Name": "fdiv_ieee",
"Operands": [
{"Name": "FirstSrc", "Kind": "Input"},
{"Name": "SecondSrc", "Kind": "Input"}
],
"TranslateInto": {
"VC-Intrinsic": "genx_ieee_div",
"ReturnType": {
"GetBuiltinReturnType": []
},
"Operands": [
{"GetBuiltinOperand": ["FirstSrc"]},
{"GetBuiltinOperand": ["SecondSrc"]}
]
}
},
"RSQRT": {
"Name": "rsqrt",
"Operands": [
Expand Down

0 comments on commit 482b697

Please sign in to comment.