[PATCH] D44559: Wrong width of result of mul operation for x86

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 16 10:06:15 PDT 2018


craig.topper added a comment.

Why should the behavior be X86 specific?

There also seems to be something weirder going on with gcc. They also warn on these.

void foo(char c) {

  c = c + c;

}

void bar(short c) {

  c = c + c;

}


https://reviews.llvm.org/D44559





More information about the llvm-commits mailing list