about summary refs log tree commit diff
path: root/library/stdarch/crates/stdarch-test
diff options
context:
space:
mode:
authorSparrow Li <liyuan179@huawei.com>2021-04-12 21:08:26 +0800
committerGitHub <noreply@github.com>2021-04-12 14:08:26 +0100
commit88a5de08cba5e9010bca68e238bca4c2ac4161df (patch)
treefbe1d621604d465685b48dd00aee79fe8accdd0b /library/stdarch/crates/stdarch-test
parentb411a5c3751019ebe25da37db3409f53b0ccf9ee (diff)
downloadrust-88a5de08cba5e9010bca68e238bca4c2ac4161df.tar.gz
rust-88a5de08cba5e9010bca68e238bca4c2ac4161df.zip
Allow primitive types in the code generator and add vdup instructions (#1114)
Diffstat (limited to 'library/stdarch/crates/stdarch-test')
-rw-r--r--library/stdarch/crates/stdarch-test/src/lib.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/library/stdarch/crates/stdarch-test/src/lib.rs b/library/stdarch/crates/stdarch-test/src/lib.rs
index 0275b8d16dc..70797e17c81 100644
--- a/library/stdarch/crates/stdarch-test/src/lib.rs
+++ b/library/stdarch/crates/stdarch-test/src/lib.rs
@@ -76,8 +76,12 @@ pub fn assert(shim_addr: usize, fnname: &str, expected: &str) {
         instrs = &instrs[..instrs.len() - 1];
     }
 
-    // If the expected intrinsic is a nop it is compiled away so we
-    // can't check for it - aka the intrinsic is not generating any code
+    // There are two cases when the expected instruction is nop:
+    // 1. The expected intrinsic is compiled away so we can't
+    // check for it - aka the intrinsic is not generating any code.
+    // 2. It is a mark, indicating that the instruction will be
+    // compiled into other instructions - mainly because of llvm
+    // optimization.
     if expected == "nop" {
         return;
     }