Skip to content

Commit 83e6584

Browse files
committed
Modify the comments in stdarch-test
1 parent 65e6fcb commit 83e6584

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

crates/stdarch-test/src/lib.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,13 @@ pub fn assert(shim_addr: usize, fnname: &str, expected: &str) {
7676
instrs = &instrs[..instrs.len() - 1];
7777
}
7878

79-
// If the expected intrinsic is a nop it is compiled away so we
80-
// can't check for it - aka the intrinsic is not generating any code
79+
// There are two cases when the expected instruction is nop:
80+
// 1. The expected intrinsic is a nop it is compiled away so
81+
// we can't check for it - aka the intrinsic is not generating
82+
// any code.
83+
// 2. It is a mark, indicating that the instruction will be
84+
// compiled into other instructions - mainly because of llvm
85+
// optimization.
8186
if expected == "nop" {
8287
return;
8388
}

0 commit comments

Comments
 (0)