How to understand the cmp mnemonic in arm assembly?Consider the below code. In the below code , when i run it i get the answer 2 instead of 4.Why?

.global _start

_start:

mov R0,#1

mov R1,#3

cmp R0,R1

BGT r0_big

r0_big :

mov R0,#2

B end 

r0_small:

mov R0,#4

end:

mov R7,#1

swi 0