[llvm-commits] [dragonegg] r94883 - /dragonegg/trunk/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Sat Jan 30 05:34:46 PST 2010
Author: baldrick
Date: Sat Jan 30 07:34:46 2010
New Revision: 94883
URL: http://llvm.org/viewvc/llvm-project?rev=94883&view=rev
Log:
Port llvm-gcc commit 93366 (grosbach):
No fetch-and-add for Thumb1. Copy/Paste-o error.
Modified:
dragonegg/trunk/llvm-convert.cpp
Modified: dragonegg/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-convert.cpp?rev=94883&r1=94882&r2=94883&view=diff
==============================================================================
--- dragonegg/trunk/llvm-convert.cpp (original)
+++ dragonegg/trunk/llvm-convert.cpp Sat Jan 30 07:34:46 2010
@@ -3851,6 +3851,10 @@
case BUILT_IN_FETCH_AND_ADD_1:
case BUILT_IN_FETCH_AND_ADD_2:
case BUILT_IN_FETCH_AND_ADD_4: {
+#if defined(TARGET_ARM)
+ if (TARGET_THUMB1 || !arm_arch6)
+ return false;
+#endif
Result = BuildBinaryAtomicBuiltin(stmt, Intrinsic::atomic_load_add);
return true;
}
More information about the llvm-commits
mailing list