Skip to content
Snippets Groups Projects
user avatar
Richard Sandiford authored
There was an embarrassing typo in the folding of BIT_NOT_EXPR for
POLY_INT_CSTs: it used - rather than ~ on the poly_int.  Not sure
how that happened, but it might have been due to the way that
~x is implemented as -1 - x internally.

gcc/
	PR tree-optimization/118976
	* fold-const.cc (const_unop): Use ~ rather than - for BIT_NOT_EXPR.
	* config/aarch64/aarch64.cc (aarch64_test_sve_folding): New function.
	(aarch64_run_selftests): Run it.
78380fd7
History
Name Last commit Last update
..
aarch64
alpha
arc
arm
avr
bfin
bpf
c6x
cris
csky
epiphany
fr30
frv
ft32
gcn
h8300
i386
ia64
iq2000
lm32
loongarch
m32c
m32r
m68k
mcore
microblaze
mingw
mips
mmix
mn10300
moxie
msp430
nds32
nvptx
or1k
pa
pdp11
pru
riscv
rl78
rs6000
rx
s390
sh
sparc
stormy16
v850
vax
visium
vms
vxworks
xtensa
README
darwin-c.cc
darwin-d.cc
darwin-driver.cc
darwin-f.cc
darwin-ppc-ldouble-patch.def
darwin-protos.h
darwin-rust.cc
darwin-sections.def
darwin.cc
darwin.h
darwin.opt
darwin.opt.urls
default-c.cc
default-d.cc
default-rust.cc
dragonfly-d.cc
dragonfly-rust.cc
dragonfly-stdint.h
dragonfly.h
dragonfly.opt
dragonfly.opt.urls
elfos.h
flat.h
freebsd-d.cc
freebsd-nthr.h
freebsd-rust.cc
freebsd-spec.h
freebsd-stdint.h
freebsd.h
freebsd.opt
freebsd.opt.urls
fuchsia-rust.cc
fuchsia.h
fused-madd.opt
fused-madd.opt.urls
g.opt
g.opt.urls
glibc-c.cc
glibc-stdint.h
gnu-d.cc
gnu-user.h
gnu-user.opt
gnu-user.opt.urls
gnu.h
host-darwin.cc
host-darwin.h
host-hpux.cc
host-linux.cc
host-netbsd.cc
host-openbsd.cc
host-solaris.cc
hpux-stdint.h
hpux11.opt
hpux11.opt.urls
initfini-array.h
kfreebsd-d.cc
kfreebsd-gnu.h
kopensolaris-d.cc
kopensolaris-gnu.h
linux-android.h
linux-android.opt
linux-android.opt.urls
linux-d.cc
linux-protos.h
linux-rust.cc
linux.cc
linux.h
linux.opt
linux.opt.urls
lynx.h
lynx.opt
lynx.opt.urls
netbsd-d.cc
netbsd-elf.h
netbsd-elf.opt
netbsd-elf.opt.urls
netbsd-protos.h
netbsd-rust.cc
netbsd-stdint.h
netbsd.cc
netbsd.h
netbsd.opt
netbsd.opt.urls
newlib-stdint.h
openbsd-d.cc
openbsd-libpthread.h
openbsd-rust.cc
openbsd-stdint.h
openbsd.h
openbsd.opt
openbsd.opt.urls
phoenix.h
print-sysroot-suffix.sh
rpath.opt
rpath.opt.urls
rtems.h
rtems.opt
rtems.opt.urls
sol2-c.cc
sol2-clearcap.map
sol2-clearcapv2.map
sol2-cxx.cc
sol2-d.cc
sol2-protos.h
sol2-rust.cc
sol2-stubs.cc
sol2.cc
sol2.h
sol2.opt
sol2.opt.urls
t-darwin
t-dragonfly
t-freebsd
t-fuchsia
t-glibc
t-libunwind
t-linux
t-lynx
t-musl
t-netbsd
t-openbsd
t-pnt16-warn
t-rtems
t-slibgcc
t-sol2
t-sysroot-suffix
t-uclibc
t-vxworks
t-winnt
tm-dwarf2.h
usegas.h
usegld.h
vx-common.h
vxworks-c.cc
vxworks-driver.cc
vxworks-dummy.h
vxworks-rust.cc
vxworks-smp.opt
vxworks-smp.opt.urls
vxworks-stdint.h
vxworks.cc
vxworks.h
vxworks.opt
vxworks.opt.urls
vxworksae.h
winnt-c.cc
winnt-rust.cc