Re: [PATCH 5/8] s390/purgatory: workaround llvm's IAS limitations

From: Heiko Carstens
Date: Thu May 12 2022 - 13:26:55 EST


On Wed, May 11, 2022 at 12:54:41PM -0700, Nick Desaulniers wrote:
> On Wed, May 11, 2022 at 5:05 AM Heiko Carstens <hca@xxxxxxxxxxxxx> wrote:
> >
> > llvm's integrated assembler cannot handle immediate values which are
> > calculated with two local labels:
> >
> > arch/s390/purgatory/head.S:139:11: error: invalid operand for instruction
> > aghi %r8,-(.base_crash-purgatory_start)
>
> I thought this was fixed in
> https://github.com/ClangBuiltLinux/linux/issues/1420
> https://reviews.llvm.org/D113341
> (clang-14)
> ?

Looks like the referenced fix only works for displacements, bit not
for immediates.