Skip to content

Commit 8665db2

Browse files
committed
Pass constant for assert_instr(aeskeygenassist)
Pass a particular value for the disassembly test, so we end up with one instruction, instead of the match arm that matches on all 256 values.
1 parent 3bcb701 commit 8665db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coresimd/src/x86/i686/aes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub unsafe fn _mm_aesimc_si128(a: __m128i) -> __m128i {
6565
/// a round key for encryption cipher using data from `a` and an 8-bit round constant.
6666
#[inline]
6767
#[target_feature(enable = "aes")]
68-
#[cfg_attr(test, assert_instr(aeskeygenassist))]
68+
#[cfg_attr(test, assert_instr(aeskeygenassist, imm8 = 0))]
6969
pub unsafe fn _mm_aeskeygenassist_si128(a: __m128i, imm8: u8) -> __m128i {
7070
macro_rules! call {
7171
($imm8:expr) => (aeskeygenassist(a, $imm8))

0 commit comments

Comments
 (0)