let ResourceCycles = [1, 4];
let NumMicroOps = 3;
}
-def : InstRW<[JWritePSHUFB], (instrs PSHUFBrr, VPSHUFBrr)>;
+def : InstRW<[JWritePSHUFB], (instrs MMX_PSHUFBrr, PSHUFBrr, VPSHUFBrr)>;
def JWritePSHUFBLd: SchedWriteRes<[JLAGU, JFPU01, JVALU]> {
let Latency = 7;
let ResourceCycles = [1, 1, 4];
let NumMicroOps = 3;
}
-def : InstRW<[JWritePSHUFBLd, ReadAfterLd], (instrs PSHUFBrm, VPSHUFBrm)>;
+def : InstRW<[JWritePSHUFBLd, ReadAfterLd], (instrs MMX_PSHUFBrm, PSHUFBrm, VPSHUFBrm)>;
def JWriteVPERM: SchedWriteRes<[JFPU01, JFPX]> {
let Latency = 2;
;
; BTVER2-LABEL: test_pshufb:
; BTVER2: # %bb.0:
-; BTVER2-NEXT: pshufb %mm1, %mm0 # sched: [1:0.50]
-; BTVER2-NEXT: pshufb (%rdi), %mm0 # sched: [6:1.00]
+; BTVER2-NEXT: pshufb %mm1, %mm0 # sched: [2:2.00]
+; BTVER2-NEXT: pshufb (%rdi), %mm0 # sched: [7:2.00]
; BTVER2-NEXT: movq %mm0, %rax # sched: [1:0.50]
; BTVER2-NEXT: retq # sched: [4:1.00]
;