1 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-unknown -mcpu=pwr8 | FileCheck %s
3 ; Ensure this does not crash
5 define <2 x i8> @test1(<2 x i8> %a) {
6 %1 = shl nuw <2 x i8> %a, <i8 7, i8 7>
7 %2 = ashr exact <2 x i8> %1, <i8 7, i8 7>
11 ; CHECK: vspltisb [[REG1:[0-9]+]], 7
12 ; CHECK: vslb [[REG2:[0-9]+]], 2, [[REG1]]
13 ; CHECK: vsrab [[REG3:[0-9]+]], [[REG2]], [[REG1]]
15 define <2 x i16> @test2(<2 x i16> %a) {
16 %1 = shl nuw <2 x i16> %a, <i16 15, i16 15>
17 %2 = ashr exact <2 x i16> %1, <i16 15, i16 15>
22 ; CHECK: vspltish [[REG1:[0-9]+]], 15
23 ; CHECK: vslh [[REG2:[0-9]+]], 2, [[REG1]]
24 ; CHECK: vsrah [[REG3:[0-9]+]], [[REG2]], [[REG1]]