Print all the bits in the addend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136867 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Scripts/common_dump.py b/test/Scripts/common_dump.py
index 3d69c3fb..cd0c493 100644
--- a/test/Scripts/common_dump.py
+++ b/test/Scripts/common_dump.py
@@ -40,7 +40,8 @@
     4. Do print 0x Why?
        so that they can be easily distinguished using sed/rx
     """
+    assert 0 <= val < (1 << numBits)
+
     val = val & (( 1 << numBits) - 1)
     newFmt = "0x%0" + "%d" % (numBits / 4) + "x"
     return newFmt % val
-