aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/PowerPC/mtvsrbmi.ll
blob: 5486dc02faf909f396f09b547959acb472a3099a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; Verify whether the generated assembly for the following function includes the mtvsrbmi instruction.
; vector unsigned char v00FF()
; {
; vector unsigned char x = { 0xFF, 0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 };
; return x;
; }

; RUN: llc < %s -ppc-asm-full-reg-names  -mtriple=powerpc-ibm-aix -mcpu=pwr10  -verify-machineinstrs \
; RUN:   | FileCheck %s --check-prefix=CHECK

define dso_local noundef range(i8 -1, 1) <16 x i8> @_Z5v00FFv() {
; CHECK:      L..CPI0_0:
; CHECK-NEXT:   .byte   255                             # 0xff
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0
; CHECK-NEXT:   .byte   0                               # 0x0

; CHECK-LABEL: _Z5v00FFv:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    lwz r3, L..C0(r2) # %const.0
; CHECK-NEXT:    lxv vs34, 0(r3)
; CHECK-NEXT:    blr
entry:
  ret <16 x i8> <i8 -1, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>
}