aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/MachineVerifier
diff options
context:
space:
mode:
authorAmara Emerson <amara@apple.com>2021-03-24 23:59:40 -0700
committerAmara Emerson <amara@apple.com>2021-03-25 17:23:30 -0700
commit55533203d72e6f08b083f369ab5e31e139f2ef48 (patch)
treee5b5624cfac9faa3a859f497725d108612ef69f2 /llvm/test/MachineVerifier
parent23f657c165da1b599d79de11980583968d8e6a91 (diff)
downloadllvm-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.mir13
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
+
+...