[llvm-branch-commits] [llvm-branch] r109339 - /llvm/branches/ggreif/waymark-64/unittests/VMCore/WaymarkTest.cpp

Gabor Greif ggreif at gmail.com
Sat Jul 24 07:02:49 PDT 2010


Author: ggreif
Date: Sat Jul 24 09:02:49 2010
New Revision: 109339

URL: http://llvm.org/viewvc/llvm-project?rev=109339&view=rev
Log:
ThreeBit is for 64 bit (or bigger) systems

Modified:
    llvm/branches/ggreif/waymark-64/unittests/VMCore/WaymarkTest.cpp

Modified: llvm/branches/ggreif/waymark-64/unittests/VMCore/WaymarkTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/waymark-64/unittests/VMCore/WaymarkTest.cpp?rev=109339&r1=109338&r2=109339&view=diff
==============================================================================
--- llvm/branches/ggreif/waymark-64/unittests/VMCore/WaymarkTest.cpp (original)
+++ llvm/branches/ggreif/waymark-64/unittests/VMCore/WaymarkTest.cpp Sat Jul 24 09:02:49 2010
@@ -50,6 +50,11 @@
 }
 
 TEST(WaymarkTest, ThreeBit) {
+  // It is impossible to satisfy this test on
+  // a 32-bit system. Better quit now.
+  if (Use::availableTagBits < 3)
+		return;
+
   Use* many = new Use[8212];
   ASSERT_TRUE(many);
 	Use::initTags<3>(many, many + 8212, 0);





More information about the llvm-branch-commits mailing list