diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-04 17:00:11 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-04 17:00:11 +0000 |
commit | 77dde89b9011da3ee2557f5652ecf407a330c69c (patch) | |
tree | 5b31c471d99f6c6ea0842b82375e80c5f8b3f14a /llvm/test/Scripts/common_dump.py | |
parent | 78d0b57d8803761559f9eee0c780cf04f3e99965 (diff) | |
download | bcm5719-llvm-77dde89b9011da3ee2557f5652ecf407a330c69c.tar.gz bcm5719-llvm-77dde89b9011da3ee2557f5652ecf407a330c69c.zip |
Fix the bitwidth of the remaining fields.
llvm-svn: 136884
Diffstat (limited to 'llvm/test/Scripts/common_dump.py')
-rw-r--r-- | llvm/test/Scripts/common_dump.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/Scripts/common_dump.py b/llvm/test/Scripts/common_dump.py index cd0c493451e..fd58993c058 100644 --- a/llvm/test/Scripts/common_dump.py +++ b/llvm/test/Scripts/common_dump.py @@ -31,7 +31,7 @@ def dataToHexUnified(d): return ''.join(bytes).strip() -def HexDump(val, numBits=32): +def HexDump(valPair): """ 1. do not print 'L' 2. Handle negatives and large numbers by mod (2^numBits) @@ -40,6 +40,7 @@ def HexDump(val, numBits=32): 4. Do print 0x Why? so that they can be easily distinguished using sed/rx """ + val, numBits = valPair assert 0 <= val < (1 << numBits) val = val & (( 1 << numBits) - 1) |