[llvm-commits] CVS: llvm/lib/Reoptimizer/BinInterface/analyze.cpp sparcdis.cpp

Anand Shukla ashukla at cs.uiuc.edu
Thu Jun 5 01:07:01 PDT 2003


Changes in directory llvm/lib/Reoptimizer/BinInterface:

analyze.cpp updated: 1.9 -> 1.10
sparcdis.cpp updated: 1.11 -> 1.12

---
Log message:

Added check for FP BRanch and FPCMP

---
Diffs of the changes:

Index: llvm/lib/Reoptimizer/BinInterface/analyze.cpp
diff -u llvm/lib/Reoptimizer/BinInterface/analyze.cpp:1.9 llvm/lib/Reoptimizer/BinInterface/analyze.cpp:1.10
--- llvm/lib/Reoptimizer/BinInterface/analyze.cpp:1.9	Sat May 31 17:07:33 2003
+++ llvm/lib/Reoptimizer/BinInterface/analyze.cpp	Thu Jun  5 01:06:03 2003
@@ -76,6 +76,11 @@
       return false;
     }
   }
+  if(RD_FLD(instr,INSTR_OP)==OP_2){
+    if(RD_FLD(instr, INSTR_OP3) == OP3_FCMP)
+      return true;
+  }
+  
   return false;
 }
 


Index: llvm/lib/Reoptimizer/BinInterface/sparcdis.cpp
diff -u llvm/lib/Reoptimizer/BinInterface/sparcdis.cpp:1.11 llvm/lib/Reoptimizer/BinInterface/sparcdis.cpp:1.12
--- llvm/lib/Reoptimizer/BinInterface/sparcdis.cpp:1.11	Sat May 31 17:08:16 2003
+++ llvm/lib/Reoptimizer/BinInterface/sparcdis.cpp	Thu Jun  5 01:06:03 2003
@@ -62,11 +62,13 @@
          sparc_printop_rrd(instr, labelrd);
       }
    }
-   else if (RD_FLD(instr, INSTR_OP2)==OP2_BICC)
-   {
-      printf("b%s disp:%08X",icond_names[RD_FLD(instr, INSTR_COND_H)], SIGN_EXTEND(RD_FLD(instr,INSTR_DISP22),22));
+   else if (RD_FLD(instr, INSTR_OP2)==OP2_BICC || RD_FLD(instr, INSTR_OP2)==OP2_FB)
+     {
+       printf("b%s disp:%08X",icond_names[RD_FLD(instr, INSTR_COND_H)], 
+	      SIGN_EXTEND(RD_FLD(instr,INSTR_DISP22),22));
    }
-   else if (RD_FLD(instr, INSTR_OP2)==OP2_BPICC)
+   else if (RD_FLD(instr, INSTR_OP2)==OP2_BPICC || 
+	    RD_FLD(instr, INSTR_OP2)==OP2_FBP)
    {
       printf("b%s",icond_names[RD_FLD(instr, INSTR_COND_H)]);
    }





More information about the llvm-commits mailing list