0 Replies Latest reply on Jan 5, 2009 8:01 PM by BarsMonster

    Optimizator little failure

    BarsMonster

          int temp;
          temp = 1+k21 + 234*5;
          output = temp;

       

      it fails to calculate 234*5+1 at compile time

      ; --------  Disassembly --------------------
      00 TEX: ADDR(48) CNT(1) VALID_PIX
            0  SAMPLE R0.x___, R0.xyxx, t1, s0  UNNORM(XYZW)
      01 ALU: ADDR(32) CNT(4)
            1  y: MOV         R0.y,  0.0f     
               z: ADD_INT     ____,  R0.x,  1     
            2  x: ADD_INT     R0.x,  PV1.z,  (0x00000492, 1.639519203e-42f).x     
      02 EXP_DONE: PIX0, R0.xyyy
      END_OF_PROGRAM