[all-commits] [llvm/llvm-project] 515020: [SveEmitter] Add more immediate operand checks.

sdesmalen-arm via All-commits all-commits at lists.llvm.org
Mon Apr 20 06:55:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 515020c091e74723ee0876229890d71a8aa79702
      https://github.com/llvm/llvm-project/commit/515020c091e74723ee0876229890d71a8aa79702
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2020-04-20 (Mon, 20 Apr 2020)

  Changed paths:
    M clang/include/clang/Basic/arm_sve.td
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_asrd.c
    A clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ext.c
    A clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_tmad.c
    A clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_asrd.c
    A clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_ext.c
    A clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_tmad.c
    A clang/test/CodeGen/aarch64-sve2-intrinsics/acle_sve2_qshlu.c
    A clang/test/CodeGen/aarch64-sve2-intrinsics/acle_sve2_shrnb.c
    A clang/test/CodeGen/aarch64-sve2-intrinsics/negative/acle_sve2_qshlu.c
    A clang/test/CodeGen/aarch64-sve2-intrinsics/negative/acle_sve2_shrnb.c
    M clang/utils/TableGen/SveEmitter.cpp

  Log Message:
  -----------
  [SveEmitter] Add more immediate operand checks.

This patch adds a number of intrinsics that take immediates with
varying ranges based on the element size one of the operands.

    svext:   immediate ranging 0 to (2048/sizeinbits(elt) - 1)
    svasrd:  immediate ranging 1..sizeinbits(elt)
    svqshlu: immediate ranging 1..sizeinbits(elt)/2
    ftmad:   immediate ranging 0..(sizeinbits(elt) - 1)

Reviewers: efriedma, SjoerdMeijer, rovka, rengolin

Reviewed By: SjoerdMeijer

Tags: #clang

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




More information about the All-commits mailing list