Skip to content

Commit 91c055b

Browse files
rampitecadilad
authored andcommitted
[AMDGPU] Fix Windows build
A trivial fix, 64 bit constant is 1ull, not 1ul on Windows. Fixed build broken by c0d7a8b. Change-Id: Ib47687edaf80848d71883d655d3bd3ed9505617c
1 parent 341991f commit 91c055b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ void SIMCCodeEmitter::encodeInstruction(const MCInst &MI, raw_ostream &OS,
306306
// unused op_sel_hi bits if corresponding operands do not exist.
307307
// accvgpr_read/write are different, however. These are VOP3P, MAI, have
308308
// src0, but do not use op_sel.
309-
Encoding |= (1ul << 14) | (1ul << 59) | (1ul << 60);
309+
Encoding |= (1ull << 14) | (1ull << 59) | (1ull << 60);
310310
break;
311311
default:
312312
break;

0 commit comments

Comments
 (0)