forked from OSchip/llvm-project
[NFC] Disallow unused prefixes under MC/AArch64
Differential Revision: https://reviews.llvm.org/D94616
This commit is contained in:
parent
4864d9f7e9
commit
35c8a6cbf5
|
@ -1,7 +1,7 @@
|
|||
// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+ls64 < %s 2>%t | FileCheck %s
|
||||
// RUN: FileCheck --check-prefix=CHECK-ERR --check-prefix=CHECK-LS64-ERR %s < %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-ERR %s < %t
|
||||
// RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-ERR --check-prefix=CHECK-NO-LS64-ERR %s < %t
|
||||
// RUN: FileCheck --check-prefixes=CHECK-ERR,CHECK-NO-LS64-ERR %s < %t
|
||||
|
||||
ld64b x0, [x13]
|
||||
st64b x14, [x13]
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.4a,+xs < %s 2>%t | FileCheck %s
|
||||
// RUN: FileCheck --check-prefix=CHECK-ERR --check-prefix=CHECK-XS-ERR %s < %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-ERR %s < %t
|
||||
// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.7a < %s 2>%t | FileCheck %s
|
||||
// RUN: FileCheck --check-prefix=CHECK-ERR --check-prefix=CHECK-XS-ERR %s < %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-ERR %s < %t
|
||||
// RUN: not llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.4a < %s 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-ERR --check-prefix=CHECK-NO-XS-ERR %s < %t
|
||||
// RUN: FileCheck --check-prefixes=CHECK-ERR,CHECK-NO-XS-ERR %s < %t
|
||||
|
||||
dsb #16
|
||||
dsb #20
|
||||
|
|
|
@ -1,2 +1,10 @@
|
|||
from lit.llvm.subst import ToolSubst
|
||||
|
||||
if 'AArch64' not in config.root.targets:
|
||||
config.unsupported = True
|
||||
|
||||
fc = ToolSubst('FileCheck', unresolved='fatal')
|
||||
# Insert this first. Then, we'll first update the blank FileCheck command; then,
|
||||
# the default substitution of FileCheck will replace it to its full path.
|
||||
config.substitutions.insert(0, (fc.regex,
|
||||
'FileCheck --allow-unused-prefixes=false'))
|
||||
|
|
Loading…
Reference in New Issue