[PATCH] D47872: [AArch64] Clean up LSE directive tests

Bernard Ogden via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 21 05:15:38 PDT 2018


bogden updated this revision to Diff 152257.
bogden added a comment.

Test LSE as an extension for v8-a and as an implied feature of v8.1-a.


Repository:
  rL LLVM

https://reviews.llvm.org/D47872

Files:
  test/MC/AArch64/directive-arch.s
  test/MC/AArch64/directive-cpu.s


Index: test/MC/AArch64/directive-cpu.s
===================================================================
--- test/MC/AArch64/directive-cpu.s
+++ test/MC/AArch64/directive-cpu.s
@@ -36,10 +36,10 @@
 
 	aesd v0.16b, v2.16b
 
-	.cpu generic+v8.1a+nolse
+	.cpu generic+nolse
         casa  w5, w7, [x20]
 
-	.cpu generic+v8.1a+lse
+	.cpu generic+lse
         casa  w5, w7, [x20]
 
 // NOTE: the errors precede the actual output!  The errors appear in order
Index: test/MC/AArch64/directive-arch.s
===================================================================
--- test/MC/AArch64/directive-arch.s
+++ test/MC/AArch64/directive-arch.s
@@ -8,3 +8,12 @@
 # CHECK: 	aesd	v0.16b, v2.16b
 # CHECK:        eor     v0.16b, v0.16b, v2.16b
 
+// PR32873: without extra features, '.arch' is currently ignored.
+// Add an unrelated feature to accept the directive.
+	.arch armv8.1-a+crypto
+        casa  w5, w7, [x20]
+# CHECK:        casa    w5, w7, [x20]
+
+	.arch armv8-a+lse
+	casa  w5, w7, [x20]
+# CHECK:        casa    w5, w7, [x20]


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47872.152257.patch
Type: text/x-patch
Size: 1032 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180621/72dc325d/attachment.bin>


More information about the llvm-commits mailing list