cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

chapuni
Journeyman III

ISA's BFI_INT with IL

I would like to use "bsel" (aka mux) instruction for SHA1 encoder.

On IL, UBIT_INSERT emits "BFM_INT" and "BFI_INT" for ISA.

Is there any way to be "BFI_INT" emitted directly with IL?

0 Likes
5 Replies
chapuni
Journeyman III

Oh, I found Micah's article.

"In SDK 2.5 we are expanding that, along with other optimizations, to generate BFI instructions."

Is it not implemented in the current sdk and catalyst driver?

0 Likes

The optimization has been disabled in the current SDK due to a bug in the implementation that didn't get fixed in time.
0 Likes

Thank you, Micah. I would like confirm as below on current release;

Q1) Is BFI_INT emitted only by UBIT_INSERT?

Q2) Is there no way to emit BFI_INT explicitly with CAL IL?

I expect the next release.

0 Likes

There is no way to emit BFI_INT and BFI_INT is only emitted via UBIT_INSERT. Don't expect BFI_INT to be exposed directly in CAL IL as CAL IL is being deprecated. We are working on enabling the optimization to emit just BFI_INT in some cases.
0 Likes

Originally posted by: MicahVillmow There is no way to emit BFI_INT and BFI_INT is only emitted via UBIT_INSERT. Don't expect BFI_INT to be exposed directly in CAL IL as CAL IL is being deprecated. We are working on enabling the optimization to emit just BFI_INT in some cases.


Micah, I know CAL might be deprecated in 2.5.

In contrast to other guys, I will focus low level manipulations (eg. llvm codegen). I will ask here when I met another issue, thank you!

0 Likes