X86 zero extends setcc results
authorChris Lattner <sabre@nondot.org>
Thu, 7 Apr 2005 19:41:46 +0000 (19:41 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Apr 2005 19:41:46 +0000 (19:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21146 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelPattern.cpp

index 830dcc06a027ab4aecc9346b809f3050b72809c7..322d1299499b182c0a48613192e8520f2a17f41e 100644 (file)
@@ -43,6 +43,7 @@ namespace {
       // X86 is wierd, it always uses i8 for shift amounts and setcc results.
       setShiftAmountType(MVT::i8);
       setSetCCResultType(MVT::i8);
+      setSetCCResultContents(ZeroOrOneSetCCResult);
       setShiftAmountFlavor(Mask);   // shl X, 32 == shl X, 0
 
       // Set up the register classes.