1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=thumbv8--linux-gnueabihf | FileCheck %s
3
4;; This used to cause a backend crash about not being able to
5;; select ROTL. Make sure if generates the basic VSHL/VSHR.
6define <2 x i64> @testcase(<2 x i64>* %in) {
7; CHECK-LABEL: testcase:
8; CHECK:       @ %bb.0:
9; CHECK-NEXT:    vld1.64 {d16, d17}, [r0]
10; CHECK-NEXT:    vshl.i64 q9, q8, #56
11; CHECK-NEXT:    vshr.u64 q8, q8, #8
12; CHECK-NEXT:    vorr q0, q8, q9
13; CHECK-NEXT:    bx lr
14  %1 = load <2 x i64>, <2 x i64>* %in
15  %2 = lshr <2 x i64> %1, <i64 8, i64 8>
16  %3 = shl <2 x i64> %1, <i64 56, i64 56>
17  %4 = or <2 x i64> %2, %3
18  ret <2 x i64> %4
19}
20