Skip to content

Commit 2fd4791

Browse files
committed
asm: add SSE4.1 feature
1 parent 3f876fe commit 2fd4791

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cranelift/assembler-x64/meta/src/dsl/features.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ pub enum Feature {
6565
sse,
6666
sse2,
6767
ssse3,
68+
sse41,
6869
}
6970

7071
/// List all CPU features.
@@ -80,6 +81,7 @@ pub const ALL_FEATURES: &[Feature] = &[
8081
Feature::sse,
8182
Feature::sse2,
8283
Feature::ssse3,
84+
Feature::sse41,
8385
];
8486

8587
impl fmt::Display for Feature {
@@ -90,6 +92,7 @@ impl fmt::Display for Feature {
9092
Feature::sse => write!(f, "sse"),
9193
Feature::sse2 => write!(f, "sse2"),
9294
Feature::ssse3 => write!(f, "ssse3"),
95+
Feature::sse41 => write!(f, "sse41"),
9396
}
9497
}
9598
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ impl Inst {
198198
sse => features.push(InstructionSet::SSE),
199199
sse2 => features.push(InstructionSet::SSE2),
200200
ssse3 => features.push(InstructionSet::SSSE3),
201+
sse41 => features.push(InstructionSet::SSE41),
201202
}
202203
}
203204
features

0 commit comments

Comments
 (0)