5 Replies Latest reply on May 2, 2011 9:03 PM by chapuni

    ISA's BFI_INT with IL

    chapuni

      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?

        • ISA's BFI_INT with IL
          chapuni

          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?

          • ISA's BFI_INT with IL
            MicahVillmow
            The optimization has been disabled in the current SDK due to a bug in the implementation that didn't get fixed in time.
            • ISA's BFI_INT with IL
              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.
                • ISA's BFI_INT with IL
                  chapuni

                   

                  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!