diff options
| author | Sparrow Li <liyuan179@huawei.com> | 2021-04-12 21:08:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-12 14:08:26 +0100 |
| commit | 88a5de08cba5e9010bca68e238bca4c2ac4161df (patch) | |
| tree | fbe1d621604d465685b48dd00aee79fe8accdd0b /library/stdarch/crates/stdarch-test | |
| parent | b411a5c3751019ebe25da37db3409f53b0ccf9ee (diff) | |
| download | rust-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.rs | 8 |
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; } |
