1# Check -madd-bnd-prefix option
2	.text
3
4	call	foo
5	call	*(%eax)
6	je	foo
7	jmp	foo
8	jmp	*(%ebx)
9	ret
10foo:
11	# Use of REP/REPE prefix - converted to BND with warning
12	rep ret
13	repe ret
14	# Use of REPNE prefix - we shouldn't get any error
15	repne ret
16	# BND prefix already exists - we shouldn't get any error here
17	bnd ret
18	bnd call	foo
19	# Following instructions can't have BND prefix even if
20	# -madd-bnd-prefix is specified
21	add %eax, %ebx
22	loop foo
23