forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
That's only a required extension as of v8.1a. Remove it from the "generic" CPU as well: it should only support the base ISA (and binutils agrees). Also unify the MC tests into crc.s and arm64-crc32.s git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302077 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
0a73805
commit 700df98
Showing
7 changed files
with
52 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// RUN: llvm-mc -triple aarch64-- -mattr=+crc %s 2>&1 |\ | ||
// RUN: FileCheck %s --check-prefix=CRC | ||
|
||
// RUN: not llvm-mc -triple aarch64-- %s 2>&1 |\ | ||
// RUN: FileCheck %s --check-prefix=NOCRC | ||
// RUN: not llvm-mc -triple aarch64-- -mcpu=cyclone %s 2>&1 |\ | ||
// RUN: FileCheck %s --check-prefix=NOCRC | ||
|
||
crc32b w0, w1, w5 | ||
crc32h w3, w5, w6 | ||
crc32w w19, wzr, w20 | ||
crc32x w3, w5, x20 | ||
|
||
// CRC: crc32b w0, w1, w5 | ||
// CRC: crc32h w3, w5, w6 | ||
// CRC: crc32w w19, wzr, w20 | ||
// CRC: crc32x w3, w5, x20 | ||
|
||
// NOCRC: error: instruction requires: crc | ||
// NOCRC: crc32b w0, w1, w5 | ||
// NOCRC: error: instruction requires: crc | ||
// NOCRC: crc32h w3, w5, w6 | ||
// NOCRC: error: instruction requires: crc | ||
// NOCRC: crc32w w19, wzr, w20 | ||
// NOCRC: error: instruction requires: crc | ||
// NOCRC: crc32x w3, w5, x20 | ||
|
||
crc32cb w5, w10, w15 | ||
crc32ch w3, w5, w7 | ||
crc32cw w11, w13, w17 | ||
crc32cx w19, w23, x29 | ||
|
||
// CRC: crc32cb w5, w10, w15 | ||
// CRC: crc32ch w3, w5, w7 | ||
// CRC: crc32cw w11, w13, w17 | ||
// CRC: crc32cx w19, w23, x29 | ||
|
||
// NOCRC: error: instruction requires: crc | ||
// NOCRC: crc32cb w5, w10, w15 | ||
// NOCRC: error: instruction requires: crc | ||
// NOCRC: crc32ch w3, w5, w7 | ||
// NOCRC: error: instruction requires: crc | ||
// NOCRC: crc32cw w11, w13, w17 | ||
// NOCRC: error: instruction requires: crc | ||
// NOCRC: crc32cx w19, w23, x29 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters