OSDN Git Service

switch SDTBinaryArithWithFlags to be a multiple-result node as well.
authorChris Lattner <sabre@nondot.org>
Wed, 24 Mar 2010 00:49:29 +0000 (00:49 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 24 Mar 2010 00:49:29 +0000 (00:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99370 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.td

index b55aa44..3ee37d6 100644 (file)
@@ -31,10 +31,10 @@ def SDTX86Cmov    : SDTypeProfile<1, 4,
 def SDTUnaryArithWithFlags : SDTypeProfile<2, 1,
                                            [SDTCisInt<0>, SDTCisVT<1, i32>]>;
 
-def SDTBinaryArithWithFlags : SDTypeProfile<1, 2,
-                                            [SDTCisSameAs<0, 1>,
-                                             SDTCisSameAs<0, 2>,
-                                             SDTCisInt<0>]>;
+def SDTBinaryArithWithFlags : SDTypeProfile<2, 2,
+                                            [SDTCisSameAs<0, 2>,
+                                             SDTCisSameAs<0, 3>,
+                                             SDTCisInt<0>, SDTCisVT<1, i32>]>;
 def SDTX86BrCond  : SDTypeProfile<0, 3,
                                   [SDTCisVT<0, OtherVT>,
                                    SDTCisVT<1, i8>, SDTCisVT<2, i32>]>;