Skip to content

Commit 3995e74

Browse files
bjorn3gnzlbg
authored andcommitted
Require prefix of instruction line to be the expected instruction
`rsqrtps %xmm0,%xmm1` used to match `sqrtps` without leading `r`.
1 parent ac59837 commit 3995e74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/stdarch-test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub fn assert(_fnptr: usize, fnname: &str, expected: &str) {
9090

9191
// Look for `expected` as the first part of any instruction in this
9292
// function, e.g., tzcntl in tzcntl %rax,%rax.
93-
let found = instrs.iter().any(|s| s.contains(expected));
93+
let found = instrs.iter().any(|s| s.starts_with(expected));
9494

9595
// Look for `call` instructions in the disassembly to detect whether
9696
// inlining failed: all intrinsics are `#[inline(always)]`, so

0 commit comments

Comments
 (0)