[clang] [llvm] [RISCV] Add support for inline asm constraint vd (PR #111653)
Sam Elliott via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 11 11:18:15 PDT 2024
================
@@ -29,6 +29,14 @@ vint32m1_t test_vr(vint32m1_t a, vint32m1_t b) {
return ret;
}
+vint32m1_t test_vd(vint32m1_t a, vint32m1_t b) {
+// CHECK-LABEL: define{{.*}} @test_vd
+// CHECK: %0 = tail call <vscale x 2 x i32> asm sideeffect "vadd.vv $0, $1, $2", "=^vd,^vd,^vd"(<vscale x 2 x i32> %a, <vscale x 2 x i32> %b)
+ vint32m1_t ret;
+ asm volatile ("vadd.vv %0, %1, %2" : "=vd"(ret) : "vd"(a), "vd"(b));
----------------
lenary wrote:
@topperc is this test not enough?
https://github.com/llvm/llvm-project/pull/111653
More information about the cfe-commits
mailing list