OSDN Git Service

PPC ISEL is a select and never has side effects
authorHal Finkel <hfinkel@anl.gov>
Sat, 6 Apr 2013 19:30:28 +0000 (19:30 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 6 Apr 2013 19:30:28 +0000 (19:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178960 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstr64Bit.td
lib/Target/PowerPC/PPCInstrInfo.td

index fa5b65f..6536ea4 100644 (file)
@@ -515,6 +515,7 @@ def RLWINM8 : MForm_2<21,
                      "rlwinm $rA, $rS, $SH, $MB, $ME", IntGeneral,
                      []>;
 
+let isSelect = 1, neverHasSideEffects = 1 in
 def ISEL8   : AForm_4<31, 15,
                      (outs G8RC:$rT), (ins G8RC_NOX0:$rA, G8RC:$rB, CRBITRC:$cond),
                      "isel $rT, $rA, $rB, $cond", IntGeneral,
index ab90762..8cc5bb6 100644 (file)
@@ -1546,6 +1546,7 @@ let Uses = [RM] in {
 }
 
 let PPC970_Unit = 1 in {  // FXU Operations.
+  let isSelect = 1, neverHasSideEffects = 1 in
   def ISEL  : AForm_4<31, 15,
                      (outs GPRC:$rT), (ins GPRC_NOR0:$rA, GPRC:$rB, CRBITRC:$cond),
                      "isel $rT, $rA, $rB, $cond", IntGeneral,