Skip to content

Commit

Permalink
Ensure the insTupleType mask entries stay correct (#85870)
Browse files Browse the repository at this point in the history
* Ensure the insTupleType mask entries stay correct

* Ensure the bitwise result remains uint16_t
  • Loading branch information
tannergooding authored May 8, 2023
1 parent d0c9457 commit de4378f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/jit/instr.h
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ enum insTupleType : uint16_t
INS_TT_NONE = 0x0000,
INS_TT_FULL = 0x0001,
INS_TT_HALF = 0x0002,
INS_TT_IS_BROADCAST = 0x0003,
INS_TT_IS_BROADCAST = static_cast<uint16_t>(INS_TT_FULL | INS_TT_HALF),
INS_TT_FULL_MEM = 0x0010,
INS_TT_TUPLE1_SCALAR = 0x0020,
INS_TT_TUPLE1_FIXED = 0x0040,
Expand All @@ -383,7 +383,7 @@ enum insTupleType : uint16_t
INS_TT_EIGHTH_MEM = 0x1000,
INS_TT_MEM128 = 0x2000,
INS_TT_MOVDDUP = 0x4000,
INS_TT_IS_NON_BROADCAST = 0x8000,
INS_TT_IS_NON_BROADCAST = static_cast<uint16_t>(~INS_TT_IS_BROADCAST),
};
#endif

Expand Down

0 comments on commit de4378f

Please sign in to comment.