llvm.org GIT mirror llvm / 52a8399
This should always be signed chars, so use int8_t. This fixes a miscompile when llvm is built with unsigned chars where an immediate such as 0xff would be zero extended to 64-bits, turning "cmp $0xff,%eax" into "cmp $0xffffffffffffffff,%eax". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129845 91177308-0d34-0410-b5e6-96231b3b80d8 Nick Lewycky 9 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
481481 def X86_COND_S : PatLeaf<(i8 15)>;
482482
483483 let FastIselShouldIgnore = 1 in { // FastIsel should ignore all simm8 instrs.
484 def i16immSExt8 : ImmLeaf;
485 def i32immSExt8 : ImmLeaf;
486 def i64immSExt8 : ImmLeaf)Imm; }]>;
484 def i16immSExt8 : ImmLeaf)Imm; }]>;
485 def i32immSExt8 : ImmLeaf;
486 def i64immSExt8 : ImmLeaf;
487487 }
488488
489489 def i64immSExt32 : ImmLeaf;