Skip to content

Commit eee3db5

Browse files
authored
[SystemZ] Change operand type for CKSM intrstruction. (#129572)
The current definition of the CKSM instruction uses GR64 for the first operand. However, according to the Principles Of Operation the bits 0-31 of the first operand always remain unchanged. This PR changes the first operand to GR32 to model this. This has no further implication as this instruction is not used during code generation.
1 parent 2cb7b4e commit eee3db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/SystemZ/SystemZInstrInfo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2183,7 +2183,7 @@ let mayLoad = 1, mayStore = 1, Defs = [CC, R0D, R1D, R2D, R3D, R5D],
21832183

21842184
// Checksum.
21852185
let mayLoad = 1, Defs = [CC] in
2186-
def CKSM : SideEffectBinaryMemMemRRE<"cksm", 0xB241, GR64, GR128>;
2186+
def CKSM : SideEffectBinaryMemMemRRE<"cksm", 0xB241, GR32, GR128>;
21872187

21882188
// Compression call.
21892189
let mayLoad = 1, mayStore = 1, Defs = [CC, R1D], Uses = [R0L, R1D] in

0 commit comments

Comments
 (0)