diff options
author | Eric Christopher <echristo@gmail.com> | 2016-09-08 17:27:03 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2016-09-08 17:27:03 +0000 |
commit | 98ddbdb563bb6d6c2161fd50173137bdbe148e2c (patch) | |
tree | 934a7af2016b20a9e5e95ed9e42c9e34c5b89628 /llvm/test | |
parent | bbb47da8a1c9303f2bd3eafbf71a522c850bae54 (diff) | |
download | bcm5719-llvm-98ddbdb563bb6d6c2161fd50173137bdbe148e2c.tar.gz bcm5719-llvm-98ddbdb563bb6d6c2161fd50173137bdbe148e2c.zip |
AArch64 .arch directive - Include default arch attributes with extensions.
Fix the .arch asm parser to use the full set of features for the architecture
and any extensions on the command line. Add and update testcases accordingly
as well as add an extension that was used but not supported.
llvm-svn: 280971
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/AArch64/directive-arch-negative.s | 27 | ||||
-rw-r--r-- | llvm/test/MC/AArch64/directive-arch.s | 2 |
2 files changed, 14 insertions, 15 deletions
diff --git a/llvm/test/MC/AArch64/directive-arch-negative.s b/llvm/test/MC/AArch64/directive-arch-negative.s index 47e8176cb59..a69f4d8e044 100644 --- a/llvm/test/MC/AArch64/directive-arch-negative.s +++ b/llvm/test/MC/AArch64/directive-arch-negative.s @@ -6,30 +6,27 @@ # CHECK: ^ .arch armv8 + aese v0.8h, v1.8h - fminnm d0, d0, d1 - -# CHECK: error: instruction requires: fp-armv8 -# CHECK: fminnm d0, d0, d1 +# CHECK: error: invalid operand for instruction +# CHECK: aese v0.8h, v1.8h # CHECK: ^ - .arch armv8+fp - -# CHECK: '+fp' is not a recognized feature for this target (ignoring feature) - - fminnm d0, d0, d1 +// We silently ignore invalid features. + .arch armv8+foo + aese v0.8h, v1.8h -# CHECK: error: instruction requires: fp-armv8 -# CHECK: fminnm d0, d0, d1 +# CHECK: error: invalid operand for instruction +# CHECK: aese v0.8h, v1.8h # CHECK: ^ - .arch armv8+neon + .arch armv8+crypto .arch armv8 - fminnm d0, d0, d1 + aese v0.8h, v1.8h -# CHECK: error: instruction requires: fp-armv8 -# CHECK: fminnm d0, d0, d1 +# CHECK: error: invalid operand for instruction +# CHECK: aese v0.8h, v1.8h # CHECK: ^ diff --git a/llvm/test/MC/AArch64/directive-arch.s b/llvm/test/MC/AArch64/directive-arch.s index 9a9a5691d1b..9764cc79e27 100644 --- a/llvm/test/MC/AArch64/directive-arch.s +++ b/llvm/test/MC/AArch64/directive-arch.s @@ -3,8 +3,10 @@ .arch armv8-a+crypto aesd v0.16b, v2.16b + eor v0.16b, v0.16b, v2.16b # CHECK: aesd v0.16b, v2.16b +# CHECK: eor v0.16b, v0.16b, v2.16b .arch armv8.1-a+ras esb |