diff options
author | Amara Emerson <amara@apple.com> | 2021-03-24 23:59:40 -0700 |
---|---|---|
committer | Amara Emerson <amara@apple.com> | 2021-03-25 17:23:30 -0700 |
commit | 55533203d72e6f08b083f369ab5e31e139f2ef48 (patch) | |
tree | e5b5624cfac9faa3a859f497725d108612ef69f2 /llvm/test/MachineVerifier | |
parent | 23f657c165da1b599d79de11980583968d8e6a91 (diff) | |
download | llvm-55533203d72e6f08b083f369ab5e31e139f2ef48.zip llvm-55533203d72e6f08b083f369ab5e31e139f2ef48.tar.gz llvm-55533203d72e6f08b083f369ab5e31e139f2ef48.tar.bz2 |
[GlobalISel] Add G_ROTR and G_ROTL opcodes for rotates.
Differential Revision: https://reviews.llvm.org/D99383
Diffstat (limited to 'llvm/test/MachineVerifier')
-rw-r--r-- | llvm/test/MachineVerifier/test_g_rotr_rotl.mir | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/MachineVerifier/test_g_rotr_rotl.mir b/llvm/test/MachineVerifier/test_g_rotr_rotl.mir new file mode 100644 index 0000000..0d54566 --- /dev/null +++ b/llvm/test/MachineVerifier/test_g_rotr_rotl.mir @@ -0,0 +1,13 @@ +# RUN: not --crash llc -march=arm64 -verify-machineinstrs -run-pass none -o /dev/null %s 2>&1 | FileCheck %s +# REQUIRES: aarch64-registered-target +--- +name: test_uniform +body: | + bb.0: + %src:_(<2 x s64>) = G_IMPLICIT_DEF + %amt:_(s64) = G_IMPLICIT_DEF + + ; CHECK: Rotate requires operands to be either all scalars or all vectors + %rotr:_(<2 x s64>) = G_ROTR %src, %amt + +... |