summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Hexagon/vscatter-slot.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/Hexagon/vscatter-slot.s')
-rw-r--r--llvm/test/MC/Hexagon/vscatter-slot.s25
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/test/MC/Hexagon/vscatter-slot.s b/llvm/test/MC/Hexagon/vscatter-slot.s
new file mode 100644
index 00000000000..6c806de2f98
--- /dev/null
+++ b/llvm/test/MC/Hexagon/vscatter-slot.s
@@ -0,0 +1,25 @@
+# RUN: llvm-mc -arch=hexagon -mv65 -mhvx -filetype=asm < %s | FileCheck %s
+
+# Test that a slot error is not reported for a packet with a load and a
+# vscatter.
+
+# CHECK: vscatter(r0,m0,v0.h).h = v1
+{
+ v1=vmem(r1+#0)
+ vscatter(r0,m0,v0.h).h=v1
+}
+# CHECK: vscatter(r2,m0,v1:0.w).h += v2
+{
+ v1=vmem(r3+#0)
+ vscatter(r2,m0,v1:0.w).h+=v2
+}
+# CHECK: vmem(r4+#0):scatter_release
+{
+ v1=vmem(r5+#0)
+ vmem(r4+#0):scatter_release
+}
+# CHECK: vmem(r4+#0):scatter_release
+{
+ v1=vmem(r5+#0)
+ vmem(r4+#0):scatter_release
+}
OpenPOWER on IntegriCloud