projects
/
power-instruction-analyzer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
245952f
)
add more test values around i32 and i64 overflow
author
Jacob Lifshay
<programmerjake@gmail.com>
Thu, 3 Sep 2020 23:47:38 +0000
(16:47 -0700)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Thu, 3 Sep 2020 23:47:38 +0000
(16:47 -0700)
src/main.rs
patch
|
blob
|
history
diff --git
a/src/main.rs
b/src/main.rs
index f6fd4ac1e1555bfeb70a896fa000feb8ea867cb7..15ee093ef8af538692ade04fe1a07bbe6a023cfb 100644
(file)
--- a/
src/main.rs
+++ b/
src/main.rs
@@
-12,12
+12,16
@@
const TEST_VALUES: &[u64] = &[
0x2,
0xFFFF_FFFF_FFFF_FFFF,
0xFFFF_FFFF_FFFF_FFFE,
+ 0x7FFF_FFFF_FFFF_FFFE,
0x7FFF_FFFF_FFFF_FFFF,
0x8000_0000_0000_0000,
+ 0x8000_0000_0000_0001,
0x1234_5678_0000_0000,
+ 0x1234_5678_7FFF_FFFE,
+ 0x1234_5678_7FFF_FFFF,
0x1234_5678_8000_0000,
+ 0x1234_5678_8000_0001,
0x1234_5678_FFFF_FFFF,
- 0x1234_5678_7FFF_FFFF,
];
const BOOL_VALUES: &[bool] = &[false, true];