// This file was automatically generated. Do not edit. #ifndef _CUDA_PTX_GENERATED_SHL_H_ #define _CUDA_PTX_GENERATED_SHL_H_ /* // shl.b16 dest, a_reg, b_reg; // PTX ISA 10, SM_50 template = true> __device__ static inline B16 shl( B16 a_reg, uint32_t b_reg); */ #if __cccl_ptx_isa >= 100 extern "C" _CCCL_DEVICE void __cuda_ptx_shl_is_not_supported_before_SM_50__(); template = true> _CCCL_DEVICE static inline _B16 shl(_B16 __a_reg, _CUDA_VSTD::uint32_t __b_reg) { static_assert(sizeof(_B16) == 2, ""); static_assert(sizeof(_B16) == 2, ""); # if _CCCL_CUDA_COMPILER(NVHPC) || __CUDA_ARCH__ >= 500 _CUDA_VSTD::uint16_t __dest; asm("shl.b16 %0, %1, %2;" : "=h"(__dest) : "h"(/*as_b16*/ *reinterpret_cast(&__a_reg)), "r"(__b_reg) :); return *reinterpret_cast<_B16*>(&__dest); # else // Unsupported architectures will have a linker error with a semi-decent error message __cuda_ptx_shl_is_not_supported_before_SM_50__(); _CUDA_VSTD::uint16_t __err_out_var = 0; return *reinterpret_cast<_B16*>(&__err_out_var); # endif } #endif // __cccl_ptx_isa >= 100 /* // shl.b32 dest, a_reg, b_reg; // PTX ISA 10, SM_50 template = true> __device__ static inline B32 shl( B32 a_reg, uint32_t b_reg); */ #if __cccl_ptx_isa >= 100 extern "C" _CCCL_DEVICE void __cuda_ptx_shl_is_not_supported_before_SM_50__(); template = true> _CCCL_DEVICE static inline _B32 shl(_B32 __a_reg, _CUDA_VSTD::uint32_t __b_reg) { static_assert(sizeof(_B32) == 4, ""); static_assert(sizeof(_B32) == 4, ""); # if _CCCL_CUDA_COMPILER(NVHPC) || __CUDA_ARCH__ >= 500 _CUDA_VSTD::uint32_t __dest; asm("shl.b32 %0, %1, %2;" : "=r"(__dest) : "r"(/*as_b32*/ *reinterpret_cast(&__a_reg)), "r"(__b_reg) :); return *reinterpret_cast<_B32*>(&__dest); # else // Unsupported architectures will have a linker error with a semi-decent error message __cuda_ptx_shl_is_not_supported_before_SM_50__(); _CUDA_VSTD::uint32_t __err_out_var = 0; return *reinterpret_cast<_B32*>(&__err_out_var); # endif } #endif // __cccl_ptx_isa >= 100 /* // shl.b64 dest, a_reg, b_reg; // PTX ISA 10, SM_50 template = true> __device__ static inline B64 shl( B64 a_reg, uint32_t b_reg); */ #if __cccl_ptx_isa >= 100 extern "C" _CCCL_DEVICE void __cuda_ptx_shl_is_not_supported_before_SM_50__(); template = true> _CCCL_DEVICE static inline _B64 shl(_B64 __a_reg, _CUDA_VSTD::uint32_t __b_reg) { static_assert(sizeof(_B64) == 8, ""); static_assert(sizeof(_B64) == 8, ""); # if _CCCL_CUDA_COMPILER(NVHPC) || __CUDA_ARCH__ >= 500 _CUDA_VSTD::uint64_t __dest; asm("shl.b64 %0, %1, %2;" : "=l"(__dest) : "l"(/*as_b64*/ *reinterpret_cast(&__a_reg)), "r"(__b_reg) :); return *reinterpret_cast<_B64*>(&__dest); # else // Unsupported architectures will have a linker error with a semi-decent error message __cuda_ptx_shl_is_not_supported_before_SM_50__(); _CUDA_VSTD::uint64_t __err_out_var = 0; return *reinterpret_cast<_B64*>(&__err_out_var); # endif } #endif // __cccl_ptx_isa >= 100 #endif // _CUDA_PTX_GENERATED_SHL_H_