rust/tests
bors 763782aa08 Auto merge of #1342 - divergentdave:pause-instruction, r=RalfJung
Handle std::sync::atomic::spin_loop_hint()

This PR adds support for `std::sync::atomic::spin_loop_hint()` by implementing the `llvm.x86.sse2.pause` intrinsic when the target is x86-based. It appears this is the first LLVM intrinsic in foreign_items, so I added a couple match blocks to handle it or fall through to the different OS-specific methods. I added a basic smoke test to `tests/run-pass/sync.rs`. I came across this by way of `crossbeam::utils::Backoff::spin()`, FWIW.
2020-04-19 14:53:02 +00:00
..
compile-fail test some more extreme cast cases 2020-04-19 09:34:54 +02:00
run-pass Auto merge of #1342 - divergentdave:pause-instruction, r=RalfJung 2020-04-19 14:53:02 +00:00
compiletest.rs test harness informs tests about suitable temp dir 2020-03-24 09:11:48 +01:00