Skip to content

Commit ec356f2

Browse files
committed
add a test case to check whether mtvsrbmi power10 instruction not used
1 parent 2e5fb77 commit ec356f2

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
; Verify whether the generated assembly for the following function includes the mtvsrbmi instruction.
2+
; vector unsigned char v00FF()
3+
; {
4+
; vector unsigned char x = { 0xFF, 0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 };
5+
; return x;
6+
; }
7+
8+
; RUN: llc < %s -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix -mcpu=pwr10 -verify-machineinstrs \
9+
; RUN: | FileCheck %s --check-prefix=CHECK
10+
11+
define dso_local noundef range(i8 -1, 1) <16 x i8> @_Z5v00FFv() local_unnamed_addr {
12+
entry:
13+
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>
14+
}
15+
16+
; CHECK: L..CPI0_0:
17+
; CHECK-NEXT: .byte 255 # 0xff
18+
; CHECK-NEXT: .byte 0 # 0x0
19+
; CHECK-NEXT: .byte 0 # 0x0
20+
; CHECK-NEXT: .byte 0 # 0x0
21+
; CHECK-NEXT: .byte 0 # 0x0
22+
; CHECK-NEXT: .byte 0 # 0x0
23+
; CHECK-NEXT: .byte 0 # 0x0
24+
; CHECK-NEXT: .byte 0 # 0x0
25+
; CHECK-NEXT: .byte 0 # 0x0
26+
; CHECK-NEXT: .byte 0 # 0x0
27+
; CHECK-NEXT: .byte 0 # 0x0
28+
; CHECK-NEXT: .byte 0 # 0x0
29+
; CHECK-NEXT: .byte 0 # 0x0
30+
; CHECK-NEXT: .byte 0 # 0x0
31+
; CHECK-NEXT: .byte 0 # 0x0
32+
; CHECK-NEXT: .byte 0 # 0x0
33+
34+
; CHECK: ._Z5v00FFv:
35+
; CHECK-NEXT: # %bb.0:
36+
; CHECK-NEXT: lwz r3, L..C0(r2)
37+
; CHECK-NEXT: lxv vs34, 0(r3)
38+
; CHECK-NEXT: blr

0 commit comments

Comments
 (0)