Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test codegen of atomic compare-exchange with additional memory orderings #99409

Merged
merged 1 commit into from
Jul 24, 2022

Conversation

tmiasko
Copy link
Contributor

@tmiasko tmiasko commented Jul 18, 2022

@rust-highfive
Copy link
Collaborator

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 18, 2022
Copy link
Member

@m-ou-se m-ou-se left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

r=me with the allow(invalid_atomic_ordering) lines removed.

src/test/codegen/atomic-operations-llvm-12.rs Outdated Show resolved Hide resolved
src/test/codegen/atomic-operations.rs Outdated Show resolved Hide resolved
* Add a test for atomic operations introduced in rust-lang#97423 & rust-lang#98383.
* Add a test for fallback code generation strategy used on LLVM 12
  introduced in rust-lang#98385. Use a separate test case instead of a revision
  system since test will be gone once LLVM 12 is no longer supported.
@tmiasko
Copy link
Contributor Author

tmiasko commented Jul 21, 2022

@bors r=m-ou-se

@bors
Copy link
Contributor

bors commented Jul 21, 2022

📌 Commit 8ebaf14 has been approved by m-ou-se

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 21, 2022
@bors
Copy link
Contributor

bors commented Jul 24, 2022

⌛ Testing commit 8ebaf14 with merge 93af409f6fa48333e63390d60286ab68c2151389...

@bors
Copy link
Contributor

bors commented Jul 24, 2022

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 24, 2022
@rust-log-analyzer
Copy link
Collaborator

The job x86_64-msvc-tools failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
tests/fail\validity\uninit_integer.rs  ... ok
tests/fail\panic\double_panic.rs  ... ok

tests/fail\dangling_pointers\null_pointer_write_zst.rs FAILED:
command: "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools-bin\\miri.exe" "--edition" "2018" "-Astable-features" "-Aunused" "--sysroot" "C:\\Users\\runneradmin\\AppData\\Local\\rust-lang\\miri\\cache\\HOST" "-Zui-testing" "--extern" "getrandom_1=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps\\libgetrandom-dd672771ea44d4c7.rmeta" "--extern" "getrandom_2=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps\\libgetrandom-c9fcdfa62039a643.rmeta" "--extern" "libc=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps\\liblibc-b6f84c0e091211d7.rmeta" "--extern" "page_size=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps\\libpage_size-0be2a45ec4076b31.rmeta" "--extern" "rand=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps\\librand-02cf28822a5c7bea.rmeta" "--extern" "tokio=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps\\libtokio-08c5e516ddaa9497.rmeta" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\parking_lot_core-01e7881ae074c3ba" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\quote-95e478362eaa6fee" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\syn-8e3120bbe689f21a" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\winapi-fb9a27d8a2795a7c" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\proc-macro2-ef0760c3857c99a0" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\deps" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\getrandom-485958166e79d74d" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\log-cb8d4d693bac362b" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\lock_api-bfb3ddc59de1f123" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\libc-5b9c17ff5946bc74" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\windows_x86_64_msvc-ba0f4f4584401c9c" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\memchr-1e9e295b52ef8ba4" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug" "tests/fail\\dangling_pointers\\null_pointer_write_zst.rs" "--error-format=json" "-Zmir-opt-level=0"
actual output differed from expected tests/fail\dangling_pointers\null_pointer_write_zst.stderr
Diff < left / right > :
 error: Undefined Behavior: memory access failed: null pointer is a dangling pointer (it has no provenance)
<  --> RUSTLIB/core/src/ptr/mod.rs:LL:CC
---



tests/fail\intrinsics\write_bytes_overflow.rs FAILED:
command: "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools-bin\\miri.exe" "--edition" "2018" "-Astable-features" "-Aunused" "--sysroot" "C:\\Users\\runneradmin\\AppData\\Local\\rust-lang\\miri\\cache\\HOST" "-Zui-testing" "--extern" "getrandom_1=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps\\libgetrandom-dd672771ea44d4c7.rmeta" "--extern" "getrandom_2=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps\\libgetrandom-c9fcdfa62039a643.rmeta" "--extern" "libc=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps\\liblibc-b6f84c0e091211d7.rmeta" "--extern" "page_size=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps\\libpage_size-0be2a45ec4076b31.rmeta" "--extern" "rand=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps\\librand-02cf28822a5c7bea.rmeta" "--extern" "tokio=D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps\\libtokio-08c5e516ddaa9497.rmeta" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\parking_lot_core-01e7881ae074c3ba" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug\\deps" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\quote-95e478362eaa6fee" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\syn-8e3120bbe689f21a" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\winapi-fb9a27d8a2795a7c" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\proc-macro2-ef0760c3857c99a0" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\deps" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\getrandom-485958166e79d74d" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\log-cb8d4d693bac362b" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\lock_api-bfb3ddc59de1f123" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\libc-5b9c17ff5946bc74" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\windows_x86_64_msvc-ba0f4f4584401c9c" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\debug\\build\\memchr-1e9e295b52ef8ba4" "-L" "D:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\miri\\x86_64-pc-windows-msvc\\debug" "tests/fail\\intrinsics\\write_bytes_overflow.rs" "--error-format=json"
actual output differed from expected tests/fail\intrinsics\write_bytes_overflow.stderr
Diff < left / right > :
 error: Undefined Behavior: overflow computing total size of `write_bytes`
<  --> RUSTLIB/core/src/intrinsics.rs:LL:CC
---
Verifying status of rls...
Verifying status of miri...
Verifying status of embedded-book...
Cloning into 'rust-toolstate'...
fatal: unable to access 'https://github.com/rust-lang-nursery/rust-toolstate/': Could not resolve host: github.com
thread 'main' panicked at 'git clone unsuccessful (status: Ok(ExitStatus(ExitStatus(128))))', toolstate.rs:325:9
Build completed unsuccessfully in 0:00:12

@tmiasko
Copy link
Contributor Author

tmiasko commented Jul 24, 2022

@bors retry Could not resolve host: github.com

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 24, 2022
@bors
Copy link
Contributor

bors commented Jul 24, 2022

⌛ Testing commit 8ebaf14 with merge 2a990f7...

@bors
Copy link
Contributor

bors commented Jul 24, 2022

☀️ Test successful - checks-actions
Approved by: m-ou-se
Pushing 2a990f7 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 24, 2022
@bors bors merged commit 2a990f7 into rust-lang:master Jul 24, 2022
@rustbot rustbot added this to the 1.64.0 milestone Jul 24, 2022
@tmiasko tmiasko deleted the atomic-tests branch July 24, 2022 18:58
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (2a990f7): comparison url.

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

This benchmark run did not return any relevant results for this metric.

Cycles

Results
  • Primary benchmarks: 😿 relevant regression found
  • Secondary benchmarks: no relevant changes found
mean1 max count2
Regressions 😿
(primary)
4.1% 4.1% 1
Regressions 😿
(secondary)
N/A N/A 0
Improvements 🎉
(primary)
N/A N/A 0
Improvements 🎉
(secondary)
N/A N/A 0
All 😿🎉 (primary) 4.1% 4.1% 1

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

Footnotes

  1. the arithmetic mean of the percent change

  2. number of relevant changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants