[all-commits] [llvm/llvm-project] 5be314: [X86] Check immediate before get it.
Luo, Yuanke via All-commits
all-commits at lists.llvm.org
Sun Jun 13 01:27:43 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5be314f79ba7db0dcd6ea94b8dfcf7f03d8da89c
https://github.com/llvm/llvm-project/commit/5be314f79ba7db0dcd6ea94b8dfcf7f03d8da89c
Author: Luo, Yuanke <yuanke.luo at intel.com>
Date: 2021-06-13 (Sun, 13 Jun 2021)
Changed paths:
M llvm/lib/Target/X86/X86InstrInfo.cpp
A llvm/test/CodeGen/X86/unfoldMemoryOperand.mir
Log Message:
-----------
[X86] Check immediate before get it.
For CMP imm instruction, when the operand 1 is symbol address we should
check if it is immediate first. Here is the example code.
`CMP64mi32 $noreg, 8, killed renamable $rcx, @d, $noreg, @a, implicit-def
$eflags`
Many thanks to Craig, Topper for the test case to reproduce this issue.
Differential Revision: https://reviews.llvm.org/D104037
More information about the All-commits
mailing list