[all-commits] [llvm/llvm-project] 3b4f70: [AArch64][SVE] Asm: Fix supported immediates for D...

sdesmalen-arm via All-commits all-commits at lists.llvm.org
Thu Feb 11 00:37:48 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b4f706ae16bb12b7d925fbf428def7cb2a6f7db
      https://github.com/llvm/llvm-project/commit/3b4f706ae16bb12b7d925fbf428def7cb2a6f7db
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2021-02-11 (Thu, 11 Feb 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64AddressingModes.h
    M llvm/test/MC/AArch64/SVE/cpy-diagnostics.s
    M llvm/test/MC/AArch64/SVE/cpy.s
    M llvm/test/MC/AArch64/SVE/dup-diagnostics.s
    M llvm/test/MC/AArch64/SVE/dup.s
    M llvm/test/MC/AArch64/SVE/mov-diagnostics.s
    M llvm/test/MC/AArch64/SVE/mov.s

  Log Message:
  -----------
  [AArch64][SVE] Asm: Fix supported immediates for DUP/CPY

This patch fixes an issue in the implementation of DUP/CPY where certain
immediates were not accepted. Immediates should be interpreted as a two's
complement encoding of a value that fits the number of bits of the element
type.

          mov z0.b, p0/z, #127
     <=>  mov z0.b, p0/z, #-129
     <=>  mov z0.b, p0/z, #0xffffffffffffff7f

This behaviour is in line with the GNU assembler.

Reviewed By: c-rhodes

Differential Revision: https://reviews.llvm.org/D94776




More information about the All-commits mailing list