Skip to content

Commit 15aa0db

Browse files
author
Bernard Ogden
committedJun 26, 2018
[AArch64] Clean up LSE directive tests
These were specifying an architecture version with .cpu directive, which is invalid. As the error for this case outputs the problem instruction we were still matching the expectations of FileCheck. This patch fixes up the LSE tests to do what they seem to intend. A follow-up patch will tighten up the directive tests. Differential Revision: https://reviews.llvm.org/D47872 llvm-svn: 335585
1 parent 9b3b0fe commit 15aa0db

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed
 

‎llvm/test/MC/AArch64/directive-arch.s

+9
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,12 @@
88
# CHECK: aesd v0.16b, v2.16b
99
# CHECK: eor v0.16b, v0.16b, v2.16b
1010

11+
// PR32873: without extra features, '.arch' is currently ignored.
12+
// Add an unrelated feature to accept the directive.
13+
.arch armv8.1-a+crypto
14+
casa w5, w7, [x20]
15+
# CHECK: casa w5, w7, [x20]
16+
17+
.arch armv8-a+lse
18+
casa w5, w7, [x20]
19+
# CHECK: casa w5, w7, [x20]

‎llvm/test/MC/AArch64/directive-cpu.s

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636

3737
aesd v0.16b, v2.16b
3838

39-
.cpu generic+v8.1a+nolse
39+
.cpu generic+nolse
4040
casa w5, w7, [x20]
4141

42-
.cpu generic+v8.1a+lse
42+
.cpu generic+lse
4343
casa w5, w7, [x20]
4444

4545
// NOTE: the errors precede the actual output! The errors appear in order

0 commit comments

Comments
 (0)
Please sign in to comment.