summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC
diff options
context:
space:
mode:
authorColin LeMahieu <colinl@codeaurora.org>2017-03-16 00:35:28 +0000
committerColin LeMahieu <colinl@codeaurora.org>2017-03-16 00:35:28 +0000
commitddebad956e55f3f335f7f1e338edd277ab5404d7 (patch)
tree06bdc3588bfd2cccac3428f8e2e00b5baea54ffa /llvm/test/MC
parent63689ca031181b684945b69abe40aa35a1ed615c (diff)
downloadbcm5719-llvm-ddebad956e55f3f335f7f1e338edd277ab5404d7.tar.gz
bcm5719-llvm-ddebad956e55f3f335f7f1e338edd277ab5404d7.zip
[Hexagon] Updating inline saturate lanes for v62 version.
llvm-svn: 297920
Diffstat (limited to 'llvm/test/MC')
-rw-r--r--llvm/test/MC/Hexagon/bug20416.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/MC/Hexagon/bug20416.s b/llvm/test/MC/Hexagon/bug20416.s
new file mode 100644
index 00000000000..e4fb194bbf1
--- /dev/null
+++ b/llvm/test/MC/Hexagon/bug20416.s
@@ -0,0 +1,13 @@
+# RUN: not llvm-mc -mv60 -mhvx -filetype=asm %s 2>%t; FileCheck %s --check-prefix=CHECK-V60-ERROR <%t
+# RUN: llvm-mc -mv62 -mhvx -filetype=asm %s | FileCheck %s
+
+// for this a v60+/hvx instruction sequence, make sure fails with v60
+// but passes with v62. this is because this instruction uses different
+// itinerary between v60 and v62
+{
+ v0.h=vsat(v5.w,v9.w)
+ v16.h=vsat(v6.w,v26.w)
+}
+# CHECK-V60-ERROR: rror: invalid instruction packet: slot error
+# CHECK: v0.h = vsat(v5.w,v9.w)
+# CHECK: v16.h = vsat(v6.w,v26.w)
OpenPOWER on IntegriCloud