https://sourceware.org/bugzilla/show_bug.cgi?id=30848

            Bug ID: 30848
           Summary: gas x86-64: Internal error occurs while handling `bnd`
           Product: binutils
           Version: 2.41
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: jwlee2217 at softsec dot kaist.ac.kr
  Target Milestone: ---

```
$ cat examples/bug1_1.s
.intel_syntax noprefix
bnd andn R11, R12, R13
$ ./as examples/bug1_1.s
examples/bug1_1.s: Assembler messages:
examples/bug1_1.s:2: Error: expecting valid branch instruction after `bnd'
examples/bug1_1.s:2: Internal error in output_insn at config/tc-i386.c:9795.
Please report this bug.
```

When the bnd prefix is used with non-control-flow instructions, the internal
error shown in the example occurs. We can also observe this exception with
other instructions, for example, `bnd vxorps xmm0, xmm0, [r13]`. However, not
all instructions cause the error. For example, GAS rejects `bnd xor rax, rbx`,
without any internal errors. Note that this issue is not intel syntax-specific.
This bug can be reproduced using the binutils version 2.41.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to