Comments (4)
Ideally it should detect it and complain. Thank you for the report :)
from cargo-show-asm.
elakelaiset% cargo asm --rust -p shadow-shim-helper-rs "shadow_shim_helper_rs::emulated_time::EmulatedTime::saturating_add"
Finished release [optimized] target(s) in 0.06s
shadow_shim_helper_rs::emulated_time::EmulatedTime::saturating_add:
.Lfunc_begin11:
// /home/pacak/github/shadow/src/lib/shadow-shim-helper-rs/src/emulated_time.rs : 99
pub fn saturating_add(&self, duration: SimulationTime) -> EmulatedTime {
.cfi_startproc
// /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/num/uint_macros.rs : 1501
let (a, b) = intrinsics::add_with_overflow(self as $ActualT, rhs as $ActualT);
mov rcx, qword ptr [rdi]
lea rax, [rsi + rcx]
.Ltmp63:
// /home/pacak/github/shadow/src/lib/shadow-shim-helper-rs/src/emulated_time.rs : 92
EmulatedTime::from_c_emutime(self.0.checked_add(CSimulationTime::from(duration))?)
cmp rax, -1
mov rdx, -2
.Ltmp64:
// /home/pacak/github/shadow/src/lib/shadow-shim-helper-rs/src/emulated_time.rs : 100
match self.checked_add(duration) {
cmove rax, rdx
.Ltmp65:
// /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/num/uint_macros.rs : 1501
let (a, b) = intrinsics::add_with_overflow(self as $ActualT, rhs as $ActualT);
add rsi, rcx
.Ltmp66:
// /home/pacak/github/shadow/src/lib/shadow-shim-helper-rs/src/emulated_time.rs : 100
match self.checked_add(duration) {
cmovb rax, rdx
// /home/pacak/github/shadow/src/lib/shadow-shim-helper-rs/src/emulated_time.rs : 104
}
ret
.Ltmp67:
.Lfunc_end11:
.size shadow_shim_helper_rs::emulated_time::EmulatedTime::saturating_add, .Lfunc_end11-shadow_shim_helper_rs::emulated_time::EmulatedTime::saturating_add
.cfi_endproc
I guess I need to know a bit more about your setup in order to be able to replicate the problem. Is it still crashing if you drop the target
folder? Is it working at all on your machine? Do you have rust sources installed with whatever the rustup invocation is?
from cargo-show-asm.
Also is it usual x86_64 Linux with no crosscompilation?
from cargo-show-asm.
Do you have rust sources installed with whatever the rustup invocation is?
This was it. It now works correctly after running rustup component add rust-src
. Thanks for your help!
from cargo-show-asm.
Related Issues (20)
- Support inlining info in asm files
- `--print KIND=PATH` is stable
- Remove extraneous blank lines HOT 5
- `sample` test case is broken with 1.75 HOT 12
- Add use a separate library to implement syntax highlight for llvm/mir/asm
- Wrong path used for rustc sources HOT 10
- Automate release process
- --rust flag shows code from libstd HOT 4
- Function selection via index broken on v0.2.24 to v0.2.28 HOT 6
- Option to include called functions (to some depth) HOT 6
- Install fails with rustc 1.74.0 HOT 3
- [Bugfix]: release-plz workflow - ERROR failed to update packages HOT 3
- color output can be very difficult to read on dark backgrounds HOT 1
- `--simplify` removes inline assembly HOT 5
- Debug info included by default in 0.2.33 HOT 1
- Missing/incorrect line information HOT 6
- An easier way to compare different versions
- Missed no_mangle symbol in no_std/no_main Windows code HOT 10
- On 32bit Windows no_mangle names needs stripping
- Support `rustc_codegen_cranelift` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-show-asm.