Skip to content

Commit 0fabedf

Browse files
x64: Remove older pmul* from codegen (#10854)
* remove old pmul* instructions from codegen * prtest:full
1 parent 89419ec commit 0fabedf

File tree

4 files changed

+0
-71
lines changed

4 files changed

+0
-71
lines changed

cranelift/codegen/src/isa/x64/inst.isle

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -792,13 +792,6 @@
792792
Pmovzxwd
793793
Pmovzxwq
794794
Pmovzxdq
795-
Pmuldq
796-
Pmulhw
797-
Pmulhuw
798-
Pmulhrsw
799-
Pmulld
800-
Pmullw
801-
Pmuludq
802795
Pshufb
803796
Pshufd
804797
Ptest

cranelift/codegen/src/isa/x64/inst/args.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -868,13 +868,6 @@ pub enum SseOpcode {
868868
Pmovzxwd,
869869
Pmovzxwq,
870870
Pmovzxdq,
871-
Pmuldq,
872-
Pmulhw,
873-
Pmulhuw,
874-
Pmulhrsw,
875-
Pmulld,
876-
Pmullw,
877-
Pmuludq,
878871
Pshufb,
879872
Pshufd,
880873
Ptest,
@@ -926,10 +919,6 @@ impl SseOpcode {
926919
| SseOpcode::Pcmpgtw
927920
| SseOpcode::Pcmpgtd
928921
| SseOpcode::Pmaddwd
929-
| SseOpcode::Pmulhw
930-
| SseOpcode::Pmulhuw
931-
| SseOpcode::Pmullw
932-
| SseOpcode::Pmuludq
933922
| SseOpcode::Pshufd
934923
| SseOpcode::Ucomisd
935924
| SseOpcode::Pshuflw
@@ -939,7 +928,6 @@ impl SseOpcode {
939928
| SseOpcode::Pabsw
940929
| SseOpcode::Pabsd
941930
| SseOpcode::Palignr
942-
| SseOpcode::Pmulhrsw
943931
| SseOpcode::Pshufb
944932
| SseOpcode::Pmaddubsw
945933
| SseOpcode::Movddup => SSSE3,
@@ -962,8 +950,6 @@ impl SseOpcode {
962950
| SseOpcode::Pmovzxwd
963951
| SseOpcode::Pmovzxwq
964952
| SseOpcode::Pmovzxdq
965-
| SseOpcode::Pmuldq
966-
| SseOpcode::Pmulld
967953
| SseOpcode::Ptest
968954
| SseOpcode::Roundps
969955
| SseOpcode::Roundpd
@@ -1053,13 +1039,6 @@ impl fmt::Debug for SseOpcode {
10531039
SseOpcode::Pmovzxwd => "pmovzxwd",
10541040
SseOpcode::Pmovzxwq => "pmovzxwq",
10551041
SseOpcode::Pmovzxdq => "pmovzxdq",
1056-
SseOpcode::Pmuldq => "pmuldq",
1057-
SseOpcode::Pmulhw => "pmulhw",
1058-
SseOpcode::Pmulhuw => "pmulhuw",
1059-
SseOpcode::Pmulhrsw => "pmulhrsw",
1060-
SseOpcode::Pmulld => "pmulld",
1061-
SseOpcode::Pmullw => "pmullw",
1062-
SseOpcode::Pmuludq => "pmuludq",
10631042
SseOpcode::Pshufb => "pshufb",
10641043
SseOpcode::Pshufd => "pshufd",
10651044
SseOpcode::Ptest => "ptest",

cranelift/codegen/src/isa/x64/inst/emit.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,13 +1763,6 @@ pub(crate) fn emit(
17631763
SseOpcode::Pcmpgtd => (LegacyPrefixes::_66, 0x0F66, 2),
17641764
SseOpcode::Pcmpgtq => (LegacyPrefixes::_66, 0x0F3837, 3),
17651765
SseOpcode::Pmaddwd => (LegacyPrefixes::_66, 0x0FF5, 2),
1766-
SseOpcode::Pmuldq => (LegacyPrefixes::_66, 0x0F3828, 3),
1767-
SseOpcode::Pmulhw => (LegacyPrefixes::_66, 0x0FE5, 2),
1768-
SseOpcode::Pmulhrsw => (LegacyPrefixes::_66, 0x0F380B, 3),
1769-
SseOpcode::Pmulhuw => (LegacyPrefixes::_66, 0x0FE4, 2),
1770-
SseOpcode::Pmulld => (LegacyPrefixes::_66, 0x0F3840, 3),
1771-
SseOpcode::Pmullw => (LegacyPrefixes::_66, 0x0FD5, 2),
1772-
SseOpcode::Pmuludq => (LegacyPrefixes::_66, 0x0FF4, 2),
17731766
SseOpcode::Pshufb => (LegacyPrefixes::_66, 0x0F3800, 3),
17741767
_ => unimplemented!("Opcode {:?} not implemented", op),
17751768
};

cranelift/codegen/src/isa/x64/inst/emit_tests.rs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2682,36 +2682,6 @@ fn test_x64_emit() {
26822682
"pavgw %xmm8, %xmm1, %xmm8",
26832683
));
26842684

2685-
insns.push((
2686-
Inst::xmm_rm_r(SseOpcode::Pmuldq, RegMem::reg(xmm4), w_xmm15),
2687-
"66440F3828FC",
2688-
"pmuldq %xmm15, %xmm4, %xmm15",
2689-
));
2690-
2691-
insns.push((
2692-
Inst::xmm_rm_r(SseOpcode::Pmulhw, RegMem::reg(xmm9), w_xmm1),
2693-
"66410FE5C9",
2694-
"pmulhw %xmm1, %xmm9, %xmm1",
2695-
));
2696-
2697-
insns.push((
2698-
Inst::xmm_rm_r(SseOpcode::Pmulhuw, RegMem::reg(xmm7), w_xmm9),
2699-
"66440FE4CF",
2700-
"pmulhuw %xmm9, %xmm7, %xmm9",
2701-
));
2702-
2703-
insns.push((
2704-
Inst::xmm_rm_r(SseOpcode::Pmulld, RegMem::reg(xmm15), w_xmm6),
2705-
"66410F3840F7",
2706-
"pmulld %xmm6, %xmm15, %xmm6",
2707-
));
2708-
2709-
insns.push((
2710-
Inst::xmm_rm_r(SseOpcode::Pmullw, RegMem::reg(xmm14), w_xmm1),
2711-
"66410FD5CE",
2712-
"pmullw %xmm1, %xmm14, %xmm1",
2713-
));
2714-
27152685
insns.push((
27162686
Inst::xmm_rm_r_evex(Avx512Opcode::Vpmullq, xmm10, RegMem::reg(xmm14), w_xmm1),
27172687
"62D2AD0840CE",
@@ -2748,12 +2718,6 @@ fn test_x64_emit() {
27482718
"vpermi2b %xmm1, %xmm0, %xmm2, %xmm2",
27492719
));
27502720

2751-
insns.push((
2752-
Inst::xmm_rm_r(SseOpcode::Pmuludq, RegMem::reg(xmm8), w_xmm9),
2753-
"66450FF4C8",
2754-
"pmuludq %xmm9, %xmm8, %xmm9",
2755-
));
2756-
27572721
insns.push((
27582722
Inst::xmm_rm_r(SseOpcode::Pmaddwd, RegMem::reg(xmm8), w_xmm1),
27592723
"66410FF5C8",

0 commit comments

Comments
 (0)