https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109031
--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to David Binderman from comment #7) > (In reply to David Binderman from comment #4) > > Created attachment 54596 [details] > > C source code > > > > After 3 hours further reduction. > > I am struggling with further reduction. My bash knowledge is short. > > My cvise script is: > > /usr/bin/gcc -w -Werror=implicit bug892.c \ > && (./a.out 1 > 1) \ > && /home/dcb36/gcc/results/bin/gcc -w -O2 -fno-strict-aliasing bug892.c > \ > && (./a.out 1 > 2) \ > && diff 1 2; \ > > but then if diff returns 1, the script should return 0 and > if diff returns 0, then the script should return 1. You can take an inspiration here: https://github.com/marxin/gcc-util/blob/master/bisect/reduce.sh and you can use multiple `if` statements.