[PATCH] D44467: [ARM] Convert more invalid NEON immediate loads

Mikhail Maltsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 14 07:16:56 PDT 2018


miyuki created this revision.
miyuki added a reviewer: olista01.
Herald added subscribers: kristof.beyls, javed.absar, rengolin.
miyuki added a dependency: D44460: [ARM] Fix a check in vmov/vmvn immediate parsing.

Currently the LLVM MC assembler is able to convert e.g.

  vmov.i32 d0, #0xabababab

(which is technically invalid) into a valid instruction

  vmov.i8 d0, #0xab

this patch adds support for vmov.i64 and for cases with the resulting
load types other than i8, e.g.:

  vmov.i32 d0, #0xab00ab00 ->
  vmov.i16 d0, #0xab00


https://reviews.llvm.org/D44467

Files:
  lib/Target/ARM/ARMInstrNEON.td
  lib/Target/ARM/AsmParser/ARMAsmParser.cpp
  test/MC/ARM/vmov-vmvn-byte-replicate.s
  test/MC/ARM/vmov-vmvn-replicate.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44467.138348.patch
Type: text/x-patch
Size: 20891 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180314/dd59f3b4/attachment.bin>


More information about the llvm-commits mailing list