mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
[AVX512] Add pretty-printing of shuffle mask for unpacks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225837 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
12232769b3
commit
cebcef6329
@ -389,6 +389,14 @@ bool llvm::EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS,
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
DecodeUNPCKHMask(MVT::v8i32, ShuffleMask);
|
||||
break;
|
||||
case X86::VPUNPCKHDQZrr:
|
||||
Src2Name = getRegName(MI->getOperand(2).getReg());
|
||||
// FALL THROUGH.
|
||||
case X86::VPUNPCKHDQZrm:
|
||||
Src1Name = getRegName(MI->getOperand(1).getReg());
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
DecodeUNPCKHMask(MVT::v16i32, ShuffleMask);
|
||||
break;
|
||||
case X86::PUNPCKHQDQrr:
|
||||
case X86::VPUNPCKHQDQrr:
|
||||
Src2Name = getRegName(MI->getOperand(2).getReg());
|
||||
@ -407,6 +415,14 @@ bool llvm::EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS,
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
DecodeUNPCKHMask(MVT::v4i64, ShuffleMask);
|
||||
break;
|
||||
case X86::VPUNPCKHQDQZrr:
|
||||
Src2Name = getRegName(MI->getOperand(2).getReg());
|
||||
// FALL THROUGH.
|
||||
case X86::VPUNPCKHQDQZrm:
|
||||
Src1Name = getRegName(MI->getOperand(1).getReg());
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
DecodeUNPCKHMask(MVT::v8i64, ShuffleMask);
|
||||
break;
|
||||
|
||||
case X86::PUNPCKLBWrr:
|
||||
case X86::VPUNPCKLBWrr:
|
||||
@ -462,6 +478,14 @@ bool llvm::EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS,
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
DecodeUNPCKLMask(MVT::v8i32, ShuffleMask);
|
||||
break;
|
||||
case X86::VPUNPCKLDQZrr:
|
||||
Src2Name = getRegName(MI->getOperand(2).getReg());
|
||||
// FALL THROUGH.
|
||||
case X86::VPUNPCKLDQZrm:
|
||||
Src1Name = getRegName(MI->getOperand(1).getReg());
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
DecodeUNPCKLMask(MVT::v16i32, ShuffleMask);
|
||||
break;
|
||||
case X86::PUNPCKLQDQrr:
|
||||
case X86::VPUNPCKLQDQrr:
|
||||
Src2Name = getRegName(MI->getOperand(2).getReg());
|
||||
@ -480,6 +504,14 @@ bool llvm::EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS,
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
DecodeUNPCKLMask(MVT::v4i64, ShuffleMask);
|
||||
break;
|
||||
case X86::VPUNPCKLQDQZrr:
|
||||
Src2Name = getRegName(MI->getOperand(2).getReg());
|
||||
// FALL THROUGH.
|
||||
case X86::VPUNPCKLQDQZrm:
|
||||
Src1Name = getRegName(MI->getOperand(1).getReg());
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
DecodeUNPCKLMask(MVT::v8i64, ShuffleMask);
|
||||
break;
|
||||
|
||||
case X86::SHUFPDrri:
|
||||
case X86::VSHUFPDrri:
|
||||
@ -549,6 +581,14 @@ bool llvm::EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS,
|
||||
Src1Name = getRegName(MI->getOperand(1).getReg());
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
break;
|
||||
case X86::VUNPCKLPDZrr:
|
||||
Src2Name = getRegName(MI->getOperand(2).getReg());
|
||||
// FALL THROUGH.
|
||||
case X86::VUNPCKLPDZrm:
|
||||
DecodeUNPCKLMask(MVT::v8f64, ShuffleMask);
|
||||
Src1Name = getRegName(MI->getOperand(1).getReg());
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
break;
|
||||
case X86::UNPCKLPSrr:
|
||||
case X86::VUNPCKLPSrr:
|
||||
Src2Name = getRegName(MI->getOperand(2).getReg());
|
||||
@ -567,6 +607,14 @@ bool llvm::EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS,
|
||||
Src1Name = getRegName(MI->getOperand(1).getReg());
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
break;
|
||||
case X86::VUNPCKLPSZrr:
|
||||
Src2Name = getRegName(MI->getOperand(2).getReg());
|
||||
// FALL THROUGH.
|
||||
case X86::VUNPCKLPSZrm:
|
||||
DecodeUNPCKLMask(MVT::v16f32, ShuffleMask);
|
||||
Src1Name = getRegName(MI->getOperand(1).getReg());
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
break;
|
||||
case X86::UNPCKHPDrr:
|
||||
case X86::VUNPCKHPDrr:
|
||||
Src2Name = getRegName(MI->getOperand(2).getReg());
|
||||
@ -585,6 +633,14 @@ bool llvm::EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS,
|
||||
Src1Name = getRegName(MI->getOperand(1).getReg());
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
break;
|
||||
case X86::VUNPCKHPDZrr:
|
||||
Src2Name = getRegName(MI->getOperand(2).getReg());
|
||||
// FALL THROUGH.
|
||||
case X86::VUNPCKHPDZrm:
|
||||
DecodeUNPCKHMask(MVT::v8f64, ShuffleMask);
|
||||
Src1Name = getRegName(MI->getOperand(1).getReg());
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
break;
|
||||
case X86::UNPCKHPSrr:
|
||||
case X86::VUNPCKHPSrr:
|
||||
Src2Name = getRegName(MI->getOperand(2).getReg());
|
||||
@ -603,6 +659,14 @@ bool llvm::EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS,
|
||||
Src1Name = getRegName(MI->getOperand(1).getReg());
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
break;
|
||||
case X86::VUNPCKHPSZrr:
|
||||
Src2Name = getRegName(MI->getOperand(2).getReg());
|
||||
// FALL THROUGH.
|
||||
case X86::VUNPCKHPSZrm:
|
||||
DecodeUNPCKHMask(MVT::v16f32, ShuffleMask);
|
||||
Src1Name = getRegName(MI->getOperand(1).getReg());
|
||||
DestName = getRegName(MI->getOperand(0).getReg());
|
||||
break;
|
||||
case X86::VPERMILPSri:
|
||||
Src1Name = getRegName(MI->getOperand(1).getReg());
|
||||
// FALL THROUGH.
|
||||
|
Loading…
Reference in New Issue
Block a user