Skip to content

Commit 5e49be4

Browse files
committed
Minor changes.
1 parent e5cec28 commit 5e49be4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/AMDGPU/MIMGInstructions.td

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,12 +1119,13 @@ multiclass MIMG_Atomic <mimgopc op, string asm, bit isCmpSwap = 0, bit isFP = 0,
11191119
// _V* variants have different dst size, but the size is encoded implicitly,
11201120
// using dmask and tfe. Only 32-bit variant is registered with disassembler.
11211121
// Other variants are reconstructed by disassembler using dmask and tfe.
1122-
if !not(isCmpSwap) then
1122+
if !not(isCmpSwap) then {
11231123
let VDataDwords = 1 in
11241124
defm _V1 : MIMG_Atomic_Addr_Helper_m <op, asm, VGPR_32, 1, isFP, renamed>;
1125+
}
11251126

11261127
let VDataDwords = 2 in
1127-
defm _V2 : MIMG_Atomic_Addr_Helper_m <op, asm, VReg_64, !if(isCmpSwap, 1, 0), isFP, renamed>;
1128+
defm _V2 : MIMG_Atomic_Addr_Helper_m <op, asm, VReg_64, isCmpSwap, isFP, renamed>;
11281129
let VDataDwords = 3 in
11291130
defm _V3 : MIMG_Atomic_Addr_Helper_m <op, asm, VReg_96, 0, isFP, renamed>;
11301131

0 commit comments

Comments
 (0)