| 1 |
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6 |
| 2 |
; RUN: llc -verify-machineinstrs -mcpu=pwr7 -ppc-asm-full-reg-names -mtriple=powerpc64-ibm-aix < %s | \ |
| 3 |
; RUN: FileCheck %s |
| 4 |
|
| 5 |
|
| 6 |
define <4 x i8> @backsmith_pure_1(<8 x i32> %0) { |
| 7 |
; CHECK-LABEL: backsmith_pure_1: |
| 8 |
; CHECK: # %bb.0: # %entry |
| 9 |
; CHECK-NEXT: ld r3, L..C0(r2) # %const.0 |
| 10 |
; CHECK-NEXT: xxsldwi vs34, vs35, vs35, 1 |
| 11 |
; CHECK-NEXT: lxvw4x vs36, 0, r3 |
| 12 |
; CHECK-NEXT: vspltb v3, v3, 3 |
| 13 |
; CHECK-NEXT: vperm v2, v2, v2, v4 |
| 14 |
; CHECK-NEXT: xxland vs34, vs35, vs34 |
| 15 |
; CHECK-NEXT: blr |
| 16 |
entry: |
| 17 |
%shuffle = shufflevector <8 x i32> %0, <8 x i32> zeroinitializer, <4 x i32> <i32 5, i32 6, i32 7, i32 4> |
| 18 |
%conv4 = trunc <4 x i32> %shuffle to <4 x i8> |
| 19 |
%shift = shufflevector <4 x i8> %conv4, <4 x i8> zeroinitializer, <4 x i32> <i32 3, i32 poison, i32 poison, i32 poison> |
| 20 |
%foldExtExtBinop = and <4 x i8> %shift, %conv4 |
| 21 |
ret <4 x i8> %foldExtExtBinop |
| 22 |
} |