ARM IAS: support .short and .hword

Programming / Compilers / LLVM - Saleem Abdulrasool [compnerd.org] - 23 February 2014 00:22 UTC

This adds support for the .short and its alias .hword for adding literal values into the object file. This is similar to the .word directive, however, rather than inserting a value of 4 bytes, adds a 2-byte value.

be66089 ARM IAS: support .short and .hword
lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 14 +++++++++-----
test/MC/ARM/arm_word_directive.s | 6 ------
test/MC/ARM/directive-literals.s | 26 ++++++++++++++++++++++++++
3 files changed, 35 insertions(+), 11 deletions(-)

Upstream: github.com


  • Share