Commit | Line | Data |
---|---|---|
7e8b059b L |
1 | # Check -madd-bnd-prefix option |
2 | .text | |
3 | ||
4 | call foo | |
5 | call *(%rax) | |
6 | je foo | |
7 | jmp foo | |
8 | jmp *(%rbx) | |
9 | ret | |
10 | foo: | |
76d3a78a JB |
11 | # Use of REP/REPE prefix - converted to BND with warning |
12 | rep ret | |
13 | repe ret | |
7e8b059b L |
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 %rax, %rbx | |
22 | loop foo |