#-----------------------
# MultipleBranches.s
#   Test case with multiple forward and backward branches to a single label
# Arguments:
#   a0: a number x
# Return Value:
#   a0: x * 2^2
#-----------------------


MultipleBranches:
	addi	t0, zero, 3
       	bge	zero, t0, target
       	
	srli	t0, t0, 10
        beq	t0, zero, target
        
	and 	t0, t0, t0
target:
	slli	a0, a0, 1
	
	addi 	t0, t0, 9
	beq	t0, zero, target
	
	sub	t0, zero, t0
        bge	t0, zero, target
        
       	slli	a0, a0, 1
