# HG changeset patch # User Frits van Bommel # Date 1234924692 -3600 # Node ID 6a32d2e18175a653a5032037666ffcacd7c65930 # Parent 3efbe9b0dd36f23825cc5239ff36b35c30d83420 Fix a latent bug in the asm code. I think that technically, using "*m0" instead of "*0" allows LLVM to pick between using the same memory as output 0 and using a new memory location. (So far I haven't been able to construct a testcase that actually breaks because of this, though) diff -r 3efbe9b0dd36 -r 6a32d2e18175 gen/asmstmt.cpp --- a/gen/asmstmt.cpp Tue Feb 17 23:14:19 2009 +0100 +++ b/gen/asmstmt.cpp Wed Feb 18 03:38:12 2009 +0100 @@ -395,7 +395,7 @@ // Add input operand with same value, with original as "matching output". std::ostringstream ss; - ss << m_cns << (n + asmblock->outputcount); + ss << '*' << (n + asmblock->outputcount); input_constraints.push_front(ss.str()); input_values.push_front(output_values[n]); }