You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int test(unsigned short X, short Y) { return X+Y; }
$ llvm-gcc t.c -c -emit-llvm -o - -O3 | llc -march=c
signed int test(signed short ltmp_0_1, signed short ltmp_1_1) {
return ((((signed int )(signed short )ltmp_1_1)) + (((unsigned int )(unsigned short )ltmp_0_1)));
}
The first argument should be unsigned. This is a serious bug, because it means that bugpoint will get
confused more often than it currently does.
-Chris
The text was updated successfully, but these errors were encountered:
Extended Description
Consider:
int test(unsigned short X, short Y) { return X+Y; }
$ llvm-gcc t.c -c -emit-llvm -o - -O3 | llc -march=c
signed int test(signed short ltmp_0_1, signed short ltmp_1_1) {
return ((((signed int )(signed short )ltmp_1_1)) + (((unsigned int )(unsigned short )ltmp_0_1)));
}
The first argument should be unsigned. This is a serious bug, because it means that bugpoint will get
confused more often than it currently does.
-Chris
The text was updated successfully, but these errors were encountered: