forked from OSchip/llvm-project
[GlobalISel][X86] Use correct AND instructions.
AND8ri8 not supported in 64bit. llvm-svn: 307630
This commit is contained in:
parent
2779165d8c
commit
324d3791f8
|
@ -642,7 +642,7 @@ bool X86InstructionSelector::selectZext(MachineInstr &I,
|
|||
|
||||
unsigned AndOpc;
|
||||
if (DstTy == LLT::scalar(8))
|
||||
AndOpc = X86::AND8ri8;
|
||||
AndOpc = X86::AND8ri;
|
||||
else if (DstTy == LLT::scalar(16))
|
||||
AndOpc = X86::AND16ri8;
|
||||
else if (DstTy == LLT::scalar(32))
|
||||
|
|
|
@ -51,7 +51,7 @@ registers:
|
|||
- { id: 0, class: gpr, preferred-register: '' }
|
||||
- { id: 1, class: gpr, preferred-register: '' }
|
||||
# ALL: %0 = COPY %dil
|
||||
# ALL-NEXT: %1 = AND8ri8 %0, 1, implicit-def %eflags
|
||||
# ALL-NEXT: %1 = AND8ri %0, 1, implicit-def %eflags
|
||||
# ALL-NEXT: %al = COPY %1
|
||||
# ALL-NEXT: RET 0, implicit %al
|
||||
body: |
|
||||
|
|
Loading…
Reference in New Issue