1/* PR middle-end/26622
2   fold_ternary used to create a tree with mismatching types, causing
3   (const_int 128) to appear in QImode rtx.  */
4
5unsigned char g;
6
7unsigned long long
8foo (void)
9{
10  return ((long long) ((g & 0x80) != 0)) << 7;
11}
12