1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/MC/AArch64/directive-arch.s
Roland McGrath 0f93f116e0 [AArch64] Parse "rng" feature flag in .arch directive
Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D98566
2021-03-16 14:10:19 -07:00

26 lines
656 B
ArmAsm

// RUN: llvm-mc -triple aarch64-unknown-none-eabi -filetype asm -o - %s 2>&1 | FileCheck %s
.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
// 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]
.arch armv8.5-a+rng
mrs x0, rndr
mrs x0, rndrrs
# CHECK: mrs x0, RNDR
# CHECK: mrs x0, RNDRRS