[PATCH] D154899: [SystemZ] Allow symbols in immediate asm operands

Ilya Leoshkevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 06:14:11 PDT 2023


iii added a comment.

I've added pc-relative tests, but only for PC32 and PC64. For PC32DBL/PC64DBL I tried (src-.)/2, but the common code does not recognize division as a relocatable expression, and does not let the backend to handle it either. GAS does not handle it either though, so it's probably fine:

  lghi %r0,(foo-.)/2
  1.s:1: Error: invalid operands (*UND* and .text sections) for `-'


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154899/new/

https://reviews.llvm.org/D154899



More information about the llvm-commits mailing list