1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
3 ; RUN: -mcpu=pwr8 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | \
6 define dso_local <16 x i8> @x2(<16 x i8> noundef %x) {
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: vaddubm v2, v2, v2
12 %add = shl <16 x i8> %x, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
16 define dso_local <8 x i16> @x2h(<8 x i16> noundef %x) {
18 ; CHECK: # %bb.0: # %entry
19 ; CHECK-NEXT: vadduhm v2, v2, v2
22 %add = shl <8 x i16> %x, <i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1>
26 define dso_local <4 x i32> @x2w(<4 x i32> noundef %x) {
28 ; CHECK: # %bb.0: # %entry
29 ; CHECK-NEXT: vadduwm v2, v2, v2
32 %add = shl <4 x i32> %x, <i32 1, i32 1, i32 1, i32 1>
36 define dso_local <2 x i64> @x2d(<2 x i64> noundef %x) {
38 ; CHECK: # %bb.0: # %entry
39 ; CHECK-NEXT: addis r3, r2, .LCPI3_0@toc@ha
40 ; CHECK-NEXT: addi r3, r3, .LCPI3_0@toc@l
41 ; CHECK-NEXT: lxvd2x v3, 0, r3
42 ; CHECK-NEXT: vsld v2, v2, v3
45 %add = shl <2 x i64> %x, <i64 1, i64 1>