diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-08-06 00:07:49 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-08-06 18:30:44 +0200 |
| commit | c2a5bd264187f42564b7055bce4cf72a7985cbc5 (patch) | |
| tree | b055e335373510a6ff76e974727d44b433718113 /validation | |
| parent | f01f79df0512ef16dc1ae681edf75e6924a8cf2e (diff) | |
| download | sparse-dev-c2a5bd264187f42564b7055bce4cf72a7985cbc5.tar.gz | |
shift-assign: restrict shift count to unsigned int
After the RHS of shift-assigns had been integer-promoted,
both gcc & clang seems to restrict it to an unsigned int.
This only make a difference when the shift count is negative
and would it make it UB.
Better to have the same generated code, so make the same here.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/linear/shift-assign2.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/validation/linear/shift-assign2.c b/validation/linear/shift-assign2.c index 30d74376..9990ac38 100644 --- a/validation/linear/shift-assign2.c +++ b/validation/linear/shift-assign2.c @@ -13,7 +13,6 @@ u64 u64s32(u64 a, s32 b) { a >>= b; return a; } /* * check-name: shift-assign2 * check-command: test-linearize -Wno-decl $file - * check-known-to-fail * * check-output-start s64s16: |
