mve-extractelt.ll
2.29 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=thumbv8.1m.main-arm-none-eabi -mattr=+mve -verify-machineinstrs %s -o - | FileCheck %s
define arm_aapcs_vfpcc i32 @u8_explicit_extend(<16 x i8> %a) {
; CHECK-LABEL: u8_explicit_extend:
; CHECK: @ %bb.0: @ %entry
; CHECK-NEXT: vmov.u8 r0, q0[10]
; CHECK-NEXT: bx lr
entry:
%0 = extractelement <16 x i8> %a, i32 10
%1 = zext i8 %0 to i32
ret i32 %1
}
define arm_aapcs_vfpcc i32 @s8_explicit_extend(<16 x i8> %a) {
; CHECK-LABEL: s8_explicit_extend:
; CHECK: @ %bb.0: @ %entry
; CHECK-NEXT: vmov.s8 r0, q0[10]
; CHECK-NEXT: bx lr
entry:
%0 = extractelement <16 x i8> %a, i32 10
%1 = sext i8 %0 to i32
ret i32 %1
}
define arm_aapcs_vfpcc i8 @u8_extend_via_pcs(<16 x i8> %a) {
; CHECK-LABEL: u8_extend_via_pcs:
; CHECK: @ %bb.0: @ %entry
; CHECK-NEXT: vmov.u8 r0, q0[10]
; CHECK-NEXT: bx lr
entry:
%0 = extractelement <16 x i8> %a, i32 10
ret i8 %0
}
define arm_aapcs_vfpcc signext i8 @s8_extend_via_pcs(<16 x i8> %a) {
; CHECK-LABEL: s8_extend_via_pcs:
; CHECK: @ %bb.0: @ %entry
; CHECK-NEXT: vmov.s8 r0, q0[10]
; CHECK-NEXT: bx lr
entry:
%0 = extractelement <16 x i8> %a, i32 10
ret i8 %0
}
define arm_aapcs_vfpcc i32 @u16_explicit_extend(<8 x i16> %a) {
; CHECK-LABEL: u16_explicit_extend:
; CHECK: @ %bb.0: @ %entry
; CHECK-NEXT: vmov.u16 r0, q0[5]
; CHECK-NEXT: bx lr
entry:
%0 = extractelement <8 x i16> %a, i32 5
%1 = zext i16 %0 to i32
ret i32 %1
}
define arm_aapcs_vfpcc i32 @s16_explicit_extend(<8 x i16> %a) {
; CHECK-LABEL: s16_explicit_extend:
; CHECK: @ %bb.0: @ %entry
; CHECK-NEXT: vmov.s16 r0, q0[5]
; CHECK-NEXT: bx lr
entry:
%0 = extractelement <8 x i16> %a, i32 5
%1 = sext i16 %0 to i32
ret i32 %1
}
define arm_aapcs_vfpcc i16 @u16_extend_via_pcs(<8 x i16> %a) {
; CHECK-LABEL: u16_extend_via_pcs:
; CHECK: @ %bb.0: @ %entry
; CHECK-NEXT: vmov.u16 r0, q0[5]
; CHECK-NEXT: bx lr
entry:
%0 = extractelement <8 x i16> %a, i32 5
ret i16 %0
}
define arm_aapcs_vfpcc signext i16 @s16_extend_via_pcs(<8 x i16> %a) {
; CHECK-LABEL: s16_extend_via_pcs:
; CHECK: @ %bb.0: @ %entry
; CHECK-NEXT: vmov.s16 r0, q0[5]
; CHECK-NEXT: bx lr
entry:
%0 = extractelement <8 x i16> %a, i32 5
ret i16 %0
}