[llvm-commits] [llvm] r56963 - in /llvm/trunk: lib/CodeGen/SelectionDAG/LegalizeDAG.cpp lib/Target/X86/X86ISelDAGToDAG.cpp lib/Target/X86/X86ISelLowering.cpp lib/Target/X86/X86ISelLowering.h lib/Target/X86/X86InstrInfo.td test/CodeGen/X86/2008-10-02-Atomics32-2.ll utils/TableGen/CodeGenInstruction.cpp
Dale Johannesen
dalej at apple.com
Fri Oct 3 09:10:16 PDT 2008
On Oct 3, 2008, at 2:27 AM, Nicolas Geoffray wrote:
> Hi Dale,
>
> Dale Johannesen wrote:
>> Author: johannes
>> Date: Thu Oct 2 13:53:47 2008
>> New Revision: 56963
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=56963&view=rev
>> Log:
>> Handle some 64-bit atomics on x86-32, some of the time.
>>
>>
>
> This patch makes the compilation of a function such as:
>
> define i64 @func(i64* %ptr, i64 %cmp, i64 %swap) nounwind {
> %A = call i64 @llvm.atomic.cmp.swap.i64.p0i64( i64* %ptr, i64 %cmp,
> i64 %swap)
> ret i64 %A
> }
>
> fail with the error message:
>
> llc:
> /home/varth/project/llvm-svn/llvm/include/llvm/CodeGen/
> SelectionDAGNodes.h:1266:
> const llvm::SDValue& llvm::SDNode::getOperand(unsigned int) const:
> Assertion `Num < NumOperands && "Invalid child # of SDNode!"' failed.
>
>
> Was that intended?
No, sorry. I'll get it fixed later today.
More information about the llvm-commits
mailing list