Skip to content

Commit

Permalink
[AMDGPU] Fix Windows build
Browse files Browse the repository at this point in the history
A trivial fix, 64 bit constant is 1ull, not 1ul on Windows.
Fixed build broken by c0d7a8b.

Change-Id: Ib47687edaf80848d71883d655d3bd3ed9505617c
  • Loading branch information
rampitec authored and adilad committed Feb 22, 2021
1 parent 341991f commit 91c055b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ void SIMCCodeEmitter::encodeInstruction(const MCInst &MI, raw_ostream &OS,
// unused op_sel_hi bits if corresponding operands do not exist.
// accvgpr_read/write are different, however. These are VOP3P, MAI, have
// src0, but do not use op_sel.
Encoding |= (1ul << 14) | (1ul << 59) | (1ul << 60);
Encoding |= (1ull << 14) | (1ull << 59) | (1ull << 60);
break;
default:
break;
Expand Down

0 comments on commit 91c055b

Please sign in to comment.