mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[GlobalISel][X86] Use correct AND instructions.
AND8ri8 not supported in 64bit. llvm-svn: 307630
This commit is contained in:
parent
e48484a1f9
commit
57ca4a6421
@ -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
Block a user