diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 |
commit | 461a67fa15370a9ec88f8f8a240bf7c123bb2029 (patch) | |
tree | 6942083d7d56bba40ec790a453ca58ad3baf6832 /test/CodeGen/hexagon-inline-asm.c | |
parent | 75c3240472ba6ac2669ee72ca67eb72d4e2851fc (diff) |
Diffstat (limited to 'test/CodeGen/hexagon-inline-asm.c')
-rw-r--r-- | test/CodeGen/hexagon-inline-asm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGen/hexagon-inline-asm.c b/test/CodeGen/hexagon-inline-asm.c index cda3d0dcb6bd3..3de3f58baf3b9 100644 --- a/test/CodeGen/hexagon-inline-asm.c +++ b/test/CodeGen/hexagon-inline-asm.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple hexagon-unknown-elf -target-feature +hvx -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple hexagon-unknown-elf -target-feature +hvx -target-feature +hvx-length64b -emit-llvm -o - %s | FileCheck %s typedef int v64 __attribute__((__vector_size__(64))) __attribute__((aligned(64))); @@ -15,3 +15,9 @@ void foo(v64 v0, v64 v1, v64 *p) { asm ("%0 = memw(##%1)" : "=r"(r) : "s"(&g)); // CHECK: call i32 asm "$0 = memw(##$1)", "=r,s"(i32* @g) } + +void fred(unsigned *p, unsigned m, unsigned v) { + asm ("memw(%0++%1) = %2" : : "r"(p),"a"(m),"r"(v) : "memory"); +// CHECK: call void asm sideeffect "memw($0++$1) = $2", "r,a,r,~{memory}"(i32* %{{.*}}, i32 %{{.*}}, i32 %{{.*}}) +} + |