llvm/test/CodeGen/PowerPC/rotl-rotr-crash.ll
raw| 1 | ; RUN: llc -verify-machineinstrs < %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 | } |