[all-commits] [llvm/llvm-project] 80e80d: [AMDGPU] Fix inline constant encoding for `v_pk_fm...
Shilei Tian via All-commits
all-commits at lists.llvm.org
Tue Jan 20 14:23:30 PST 2026
Branch: refs/heads/users/shiltian/fix-v_pk_fmac_f16-inline-constant-for-pre-gfx11
Home: https://github.com/llvm/llvm-project
Commit: 80e80df4e61b6e897d71e382e26abb644b312456
https://github.com/llvm/llvm-project/commit/80e80df4e61b6e897d71e382e26abb644b312456
Author: Shilei Tian <i at tianshilei.me>
Date: 2026-01-20 (Tue, 20 Jan 2026)
Changed paths:
M llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
M llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
M llvm/lib/Target/AMDGPU/GCNSubtarget.h
M llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
M llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCCodeEmitter.cpp
M llvm/lib/Target/AMDGPU/SIDefines.h
M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
M llvm/lib/Target/AMDGPU/SIInstrInfo.h
M llvm/lib/Target/AMDGPU/SIRegisterInfo.td
M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
M llvm/lib/Target/AMDGPU/VOP2Instructions.td
M llvm/test/MC/AMDGPU/gfx11_asm_vop2-fake16.s
M llvm/test/MC/AMDGPU/gfx11_asm_vop2.s
M llvm/test/MC/AMDGPU/gfx12_asm_vop2-fake16.s
M llvm/test/MC/AMDGPU/gfx12_asm_vop2.s
M llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2.txt
M llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop2.txt
Log Message:
-----------
[AMDGPU] Fix inline constant encoding for `v_pk_fmac_f16`
This PR handles`v_pk_fmac_f16` inline constant encoding/decoding differences between pre-GFX11 and GFX11+ hardware.
- Pre-GFX11: fp16 inline constants produce (f16, 0) - value in low 16 bits, zero in high.
- GFX11+: fp16 inline constants are duplicated to both halves (f16, f16).
Commit: cf6a281798260d1a1d16b467a715f7d16fc40607
https://github.com/llvm/llvm-project/commit/cf6a281798260d1a1d16b467a715f7d16fc40607
Author: Shilei Tian <i at tianshilei.me>
Date: 2026-01-20 (Tue, 20 Jan 2026)
Changed paths:
M llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
M llvm/lib/Target/AMDGPU/VOP2Instructions.td
M llvm/test/MC/AMDGPU/gfx11_asm_vop2-fake16.s
M llvm/test/MC/AMDGPU/gfx11_asm_vop2.s
M llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2.txt
M llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop2.txt
Log Message:
-----------
fix review comments
Compare: https://github.com/llvm/llvm-project/compare/262a782ec2af...cf6a28179826
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list