mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
d597eb64ea
This adds two new system registers, used to generate random numbers. This is an optional extension to v8.5-A, and will be controlled by the "+rng" modifier of the -march= and -mcpu= options. Patch by Pablo Barrio! Differential revision: https://reviews.llvm.org/D52481 llvm-svn: 343217
15 lines
605 B
ArmAsm
15 lines
605 B
ArmAsm
// RUN: llvm-mc -triple aarch64 -show-encoding -mattr=+rand < %s | FileCheck %s
|
|
// RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=+v8.5a < %s 2>&1 | FileCheck %s --check-prefix=NORAND
|
|
// RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=-rand < %s 2>&1 | FileCheck %s --check-prefix=NORAND
|
|
|
|
mrs x0, rndr
|
|
mrs x1, rndrrs
|
|
|
|
// CHECK: mrs x0, RNDR // encoding: [0x00,0x24,0x3b,0xd5]
|
|
// CHECK: mrs x1, RNDRRS // encoding: [0x21,0x24,0x3b,0xd5]
|
|
|
|
// NORAND: expected readable system register
|
|
// NORAND-NEXT: rndr
|
|
// NORAND: expected readable system register
|
|
// NORAND-NEXT: rndrrs
|