You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The intrinsics-atomics test fails with the following assertion: void llvm::Instruction::setInstructionSubclassData(unsigned short): Assertion(D & HasMetadataBit) == 0 && "Out of range value put into field"' failed.`. The relevant bit of the stack trace is this:
#4 0x00007ffff4b19c70 in setInstructionSubclassData (D=<optimized out>, this=<optimized out>) at /home/james/projects/rust/compiler/src/llvm/include/llvm/IR/Instruction.h:437
#5 getSubclassDataFromInstruction (this=<optimized out>, D=<optimized out>, this=<optimized out>) at /home/james/projects/rust/compiler/src/llvm/include/llvm/IR/Instructions.h:246
#6 setOrdering (this=<optimized out>, Ordering=<optimized out>) at /home/james/projects/rust/compiler/src/llvm/include/llvm/IR/Instructions.h:197
#7 setAtomic (this=<optimized out>, SynchScope=(llvm::CrossThread | unknown: 457338112), Ordering=<optimized out>) at /home/james/projects/rust/compiler/src/llvm/include/llvm/IR/Instructions.h:216
#8 LLVMBuildAtomicLoad (B=<optimized out>, source=<optimized out>, Name=<optimized out>, order=<optimized out>) at /home/james/projects/rust/compiler/src/rustllvm/RustWrapper.cpp:558
I made a small change to output what AtomicLoad was being given as an ordering: 0xf30eb7a0 though it changes every time.
The signatures differ. I'm surprised this passed any tests at all, I guess it's pretty hit-and-miss as to whether or not the location contains a 0 or not...
Activity
Aatch commentedon May 17, 2013
@Thiez hope this helps.
Aatch commentedon May 17, 2013
Nevermind, found the issue:
In Rust:
In C:
The signatures differ. I'm surprised this passed any tests at all, I guess it's pretty hit-and-miss as to whether or not the location contains a 0 or not...
auto merge of #6550 : Aatch/rust/atomic-load, r=thestinger
emberian commentedon May 17, 2013
This can be closed
thestinger commentedon May 17, 2013
Fixed by #6550.
Auto merge of rust-lang#6548 - camsteffen:bless-internal, r=flip1995
Merge rust-lang#6552