From: Jacob Lifshay Date: Thu, 3 Sep 2020 23:47:38 +0000 (-0700) Subject: add more test values around i32 and i64 overflow X-Git-Tag: v0.2.0~21 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=27fe2694fc9144b4d400075f596a4c5637ab945c;p=power-instruction-analyzer.git add more test values around i32 and i64 overflow --- diff --git a/src/main.rs b/src/main.rs index f6fd4ac..15ee093 100644 --- 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];