diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/ARM64/crc32.ll | 2 | ||||
| -rw-r--r-- | llvm/test/MC/ARM64/basic-a64-instructions.s | 2 | ||||
| -rw-r--r-- | llvm/test/MC/ARM64/diagno-predicate.s | 7 | ||||
| -rw-r--r-- | llvm/test/MC/Disassembler/ARM64/crc32.txt | 2 |
4 files changed, 9 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/ARM64/crc32.ll b/llvm/test/CodeGen/ARM64/crc32.ll index 609eb44122b..5d759dcce71 100644 --- a/llvm/test/CodeGen/ARM64/crc32.ll +++ b/llvm/test/CodeGen/ARM64/crc32.ll @@ -1,4 +1,4 @@ -; RUN: llc -march=arm64 -o - %s | FileCheck %s +; RUN: llc -march=arm64 -mattr=+crc -o - %s | FileCheck %s define i32 @test_crc32b(i32 %cur, i8 %next) { ; CHECK-LABEL: test_crc32b: diff --git a/llvm/test/MC/ARM64/basic-a64-instructions.s b/llvm/test/MC/ARM64/basic-a64-instructions.s index 99b438d64ba..2f58eadfc84 100644 --- a/llvm/test/MC/ARM64/basic-a64-instructions.s +++ b/llvm/test/MC/ARM64/basic-a64-instructions.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple arm64 -show-encoding < %s | FileCheck %s +// RUN: llvm-mc -triple arm64 -mattr=+crc -show-encoding < %s | FileCheck %s crc32b w5, w7, w20 crc32h w28, wzr, w30 diff --git a/llvm/test/MC/ARM64/diagno-predicate.s b/llvm/test/MC/ARM64/diagno-predicate.s index 399a85c631c..3b757e836d3 100644 --- a/llvm/test/MC/ARM64/diagno-predicate.s +++ b/llvm/test/MC/ARM64/diagno-predicate.s @@ -1,4 +1,4 @@ -// RUN: not llvm-mc -triple arm64-linux-gnu -mattr=-fp-armv8 < %s 2> %t +// RUN: not llvm-mc -triple arm64-linux-gnu -mattr=-fp-armv8,-crc < %s 2> %t // RUN: FileCheck --check-prefix=CHECK-ERROR < %t %s @@ -17,3 +17,8 @@ // CHECK-ERROR-NEXT: pmull v0.1q, v1.1d, v2.1d // CHECK-ERROR-NEXT: ^ + crc32b w5, w7, w20 +// CHECK-ERROR: error: instruction requires: crc +// CHECK-ERROR-NEXT: crc32b w5, w7, w20 +// CHECK-ERROR-NEXT: ^ + diff --git a/llvm/test/MC/Disassembler/ARM64/crc32.txt b/llvm/test/MC/Disassembler/ARM64/crc32.txt index ef0a26e5629..51717ee2862 100644 --- a/llvm/test/MC/Disassembler/ARM64/crc32.txt +++ b/llvm/test/MC/Disassembler/ARM64/crc32.txt @@ -1,4 +1,4 @@ -# RUN: llvm-mc -triple=arm64 -disassemble < %s | FileCheck %s +# RUN: llvm-mc -triple=arm64 -mattr=+crc -disassemble < %s | FileCheck %s # CHECK: crc32b w5, w7, w20 # CHECK: crc32h w28, wzr, w30 |

