Skip to content

Commit

Permalink
#3908: Fix get_operand_id to return correct value
Browse files Browse the repository at this point in the history
  • Loading branch information
acejkov authored and rtawfik01 committed Dec 13, 2023
1 parent 771feff commit 1371942
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tt_metal/hw/ckernels/wormhole_b0/metal/llk_io/llk_operands.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@

inline uint32_t get_operand_id(uint32_t operand)
{
const int INTERMEDIATE_BASE_ID = 24;
const int OPERAND_BASE_ID = 0;
return (operand>=INTERMEDIATE_BASE_ID) ? operand - 8 : operand - OPERAND_BASE_ID;
return (operand);
}

inline const uint32_t get_operand_src_format(const std::uint32_t operand_id)
Expand Down

0 comments on commit 1371942

Please sign in to comment.