Patch to fix a crash in the PowerPC back end due to ISD::ROTL and ISD::ROTR
[oota-llvm.git] / test / CodeGen / PowerPC / rotl-rotr-crash.ll
1 ; RUN: llc < %s -mtriple=powerpc64le-unknown-unknown -mcpu=pwr8
2
3 ; Ensure this does not crash
4
5 ; Function Attrs: norecurse nounwind
6 define <4 x i32> @func1 (<4 x i32> %a) {
7 entry:
8   %0 = lshr <4 x i32> %a, <i32 16, i32 16, i32 16, i32 16>
9   %1 = shl <4 x i32> %a, <i32 16, i32 16, i32 16, i32 16>
10   %2 = or <4 x i32> %1, %0
11   ret <4 x i32> %2
12 }