[PATCH] D64739: [SVE][Inline-Asm] Add support to specify SVE registers in the clobber list

Sander de Smalen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 22 00:58:27 PDT 2019


sdesmalen added inline comments.


================
Comment at: clang/test/CodeGen/aarch64-sve-inline-asm.c:1
+// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -emit-llvm -target-feature +sve -o - %s | FileCheck %s
+
----------------
rovka wrote:
> Can you also add a test without +sve, to make sure we get a diagnostic?
Without the `-emit-llvm` part this test invokes (and tests the diagnostic of) the compiler. I don't think this is what we want. At the same time, this code should probably still continue match the z and p registers even if the target feature is not given, and thus leave it to LLVM to determine whether the use of these registers makes sense or not. So removing `-target-feature +sve` from the RUN line should be sufficient here. @rovka do you agree?


================
Comment at: clang/test/CodeGen/aarch64-sve-inline-asm.c:12
+      "add z31.d, p0/m, z31.d, z31.d\n"
+      : "=w"(t)
+      :
----------------
There is no variable linked to `t` in this inline asm, so you can remove this clause.


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

https://reviews.llvm.org/D64739





More information about the cfe-commits mailing list