This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gas: bmi
- From: nick clifton <nickc at redhat dot com>
- To: Christopher Howard <christopher dot howard at frigidcode dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 03 Apr 2012 15:47:14 +0100
- Subject: Re: gas: bmi
- References: <4F79CE39.3060201@frigidcode.com>
Hi Christopher,
(I may have sent this to the wrong list... resubmitting...)
You have found the correct list now.
Hey guys, how do I get gas to output the BEXTR instruction?
Try searching for it in the GAS testsuite. For example:
gas/testsuite/gas/i386/x86-64-tbm.s. So based on that, this should work:
% cat fred.s
.allow_index_reg
.text
_start:
BEXTR $0x0,%eax,%r15d
% as fred.s -o fred.o
% objdump -d fred.o
Disassembly of section .text:
0000000000000000 <_start>:
0: 8f 6a 78 10 f8 00 00 bextr $0x0,%eax,%r15d
7: 00 00
Cheers
Nick