aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineSink.cpp
diff options
context:
space:
mode:
authorMikael Holmen <mikael.holmen@ericsson.com>2023-04-04 08:45:53 +0200
committerMikael Holmen <mikael.holmen@ericsson.com>2023-04-17 08:48:19 +0200
commit8b1e81f03c0413ce25081dc5cd6b9e00376e7ddb (patch)
tree80c81970d3eb3d7d811b7560bb6a3d346b52bc38 /llvm/lib/CodeGen/MachineSink.cpp
parentb507bda4552347e00197032526c7ab4a80a853c2 (diff)
downloadllvm-8b1e81f03c0413ce25081dc5cd6b9e00376e7ddb.zip
llvm-8b1e81f03c0413ce25081dc5cd6b9e00376e7ddb.tar.gz
llvm-8b1e81f03c0413ce25081dc5cd6b9e00376e7ddb.tar.bz2
[builtins] Fix -Wshift-count-overflow warnings for targets with 16-bit int
Without this fix we got warnings like /repo/llvm/compiler-rt/lib/builtins/floattidf.c:67:29: warning: shift count >= width of type [-Wshift-count-overflow] ((e + 1023) << 20) | // exponent ^ ~~ 1 warning generated. when compiling for a target with 16-bit int. In floatundisf.c the type of "e" was already changed to "si_int" in 4d41df6482, now we do the same in a couple of other files where "e" is also left shifted 20/23 steps. Differential Revision: https://reviews.llvm.org/D147509
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
0 files changed, 0 insertions, 0 deletions