brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 4d5481b Raw
45 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 22; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \3; RUN:   -mcpu=pwr8 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | \4; RUN:   FileCheck %s5 6define dso_local <16 x i8> @x2(<16 x i8> noundef %x) {7; CHECK-LABEL: x2:8; CHECK:       # %bb.0: # %entry9; CHECK-NEXT:    vaddubm v2, v2, v210; CHECK-NEXT:    blr11entry: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>13  ret <16 x i8> %add14}15 16define dso_local <8 x i16> @x2h(<8 x i16> noundef %x) {17; CHECK-LABEL: x2h:18; CHECK:       # %bb.0: # %entry19; CHECK-NEXT:    vadduhm v2, v2, v220; CHECK-NEXT:    blr21entry:22  %add = shl <8 x i16> %x, <i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1>23  ret <8 x i16> %add24}25 26define dso_local <4 x i32> @x2w(<4 x i32> noundef %x) {27; CHECK-LABEL: x2w:28; CHECK:       # %bb.0: # %entry29; CHECK-NEXT:    vadduwm v2, v2, v230; CHECK-NEXT:    blr31entry:32  %add = shl <4 x i32> %x, <i32 1, i32 1, i32 1, i32 1>33  ret <4 x i32> %add34}35 36define dso_local <2 x i64> @x2d(<2 x i64> noundef %x) {37; CHECK-LABEL: x2d:38; CHECK:       # %bb.0: # %entry39; CHECK-NEXT:    vaddudm v2, v2, v240; CHECK-NEXT:    blr41entry:42  %add = shl <2 x i64> %x, <i64 1, i64 1>43  ret <2 x i64> %add44}45