fixed R-value for all arithmetic or logical operation

Signed-off-by: HUY PHAM <huypham612@gmail.com>