[PATCH] D38029: [AVR] Override ParseDirective

Leslie Zhai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 05:04:57 PDT 2017


xiangzhai updated this revision to Diff 116493.
xiangzhai added reviewers: kparzysz, arsenm.
xiangzhai added a comment.
Herald added a subscriber: wdng.

Implement Parse `R_AVR_LO8_LDI_NEG` and other `R_AVR_XXX_NEG` Expression for GCC compatible.

Because AVR GNU toolchain only support such Expression:

  ldi r16, lo8(-(abc))

But LLVM AVR prefers:

  ldi r16, -lo8(abc)

So I just re-implement `Check for sign`, please review my patch, thanks a lot!

Regards,
Leslie Zhai


Repository:
  rL LLVM

https://reviews.llvm.org/D38029

Files:
  include/llvm/BinaryFormat/ELFRelocs/AVR.def
  lib/Target/AVR/AsmParser/AVRAsmParser.cpp
  lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
  lib/Target/AVR/MCTargetDesc/AVRELFObjectWriter.cpp
  lib/Target/AVR/MCTargetDesc/AVRFixupKinds.h
  test/MC/AVR/relocations.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38029.116493.patch
Type: text/x-patch
Size: 7404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170925/43412e36/attachment.bin>


More information about the llvm-commits mailing list