aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/aarch64-neon-vget-hilo.c
blob: 012b0bbb964a148016d3a6f7b2a3e9f80cd674a6 (plain) (blame)
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
// REQUIRES: aarch64-registered-target
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +neon \
// RUN:   -ffp-contract=fast -S -O3 -o - %s | FileCheck %s

// Test new aarch64 intrinsics and types

#include <arm_neon.h>

int8x8_t test_vget_high_s8(int8x16_t a) {
  // CHECK-LABEL: test_vget_high_s8:
  return vget_high_s8(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

int16x4_t test_vget_high_s16(int16x8_t a) {
  // CHECK-LABEL: test_vget_high_s16:
  return vget_high_s16(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

int32x2_t test_vget_high_s32(int32x4_t a) {
  // CHECK-LABEL: test_vget_high_s32:
  return vget_high_s32(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

int64x1_t test_vget_high_s64(int64x2_t a) {
  // CHECK-LABEL: test_vget_high_s64:
  return vget_high_s64(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

uint8x8_t test_vget_high_u8(uint8x16_t a) {
  // CHECK-LABEL: test_vget_high_u8:
  return vget_high_u8(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

uint16x4_t test_vget_high_u16(uint16x8_t a) {
  // CHECK-LABEL: test_vget_high_u16:
  return vget_high_u16(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

uint32x2_t test_vget_high_u32(uint32x4_t a) {
  // CHECK-LABEL: test_vget_high_u32:
  return vget_high_u32(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

uint64x1_t test_vget_high_u64(uint64x2_t a) {
  // CHECK-LABEL: test_vget_high_u64:
  return vget_high_u64(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

poly64x1_t test_vget_high_p64(poly64x2_t a) {
  // CHECK-LABEL: test_vget_high_p64:
  return vget_high_p64(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

float16x4_t test_vget_high_f16(float16x8_t a) {
  // CHECK-LABEL: test_vget_high_f16:
  return vget_high_f16(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

float32x2_t test_vget_high_f32(float32x4_t a) {
  // CHECK-LABEL: test_vget_high_f32:
  return vget_high_f32(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

poly8x8_t test_vget_high_p8(poly8x16_t a) {
  // CHECK-LABEL: test_vget_high_p8:
  return vget_high_p8(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

poly16x4_t test_vget_high_p16(poly16x8_t a) {
  // CHECK-LABEL: test_vget_high_p16
  return vget_high_p16(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

float64x1_t test_vget_high_f64(float64x2_t a) {
  // CHECK-LABEL: test_vget_high_f64
  return vget_high_f64(a);
  // CHECK: dup d0, {{v[0-9]+}}.d[1]
}

int8x8_t test_vget_low_s8(int8x16_t a) {
  // CHECK-LABEL: test_vget_low_s8:
  return vget_low_s8(a);
  // CHECK-NEXT: ret
}

int16x4_t test_vget_low_s16(int16x8_t a) {
  // CHECK-LABEL: test_vget_low_s16:
  return vget_low_s16(a);
  // CHECK-NEXT: ret
}

int32x2_t test_vget_low_s32(int32x4_t a) {
  // CHECK-LABEL: test_vget_low_s32:
  return vget_low_s32(a);
  // CHECK-NEXT: ret
}

int64x1_t test_vget_low_s64(int64x2_t a) {
  // CHECK-LABEL: test_vget_low_s64:
  return vget_low_s64(a);
  // CHECK-NEXT: ret
}

uint8x8_t test_vget_low_u8(uint8x16_t a) {
  // CHECK-LABEL: test_vget_low_u8:
  return vget_low_u8(a);
  // CHECK-NEXT: ret
}

uint16x4_t test_vget_low_u16(uint16x8_t a) {
  // CHECK-LABEL: test_vget_low_u16:
  return vget_low_u16(a);
  // CHECK-NEXT: ret
}

uint32x2_t test_vget_low_u32(uint32x4_t a) {
  // CHECK-LABEL: test_vget_low_u32:
  return vget_low_u32(a);
  // CHECK-NEXT: ret
}

uint64x1_t test_vget_low_u64(uint64x2_t a) {
  // CHECK-LABEL: test_vget_low_u64:
  return vget_low_u64(a);
  // CHECK-NEXT: ret
}

poly64x1_t test_vget_low_p64(poly64x2_t a) {
  // CHECK-LABEL: test_vget_low_p64:
  return vget_low_p64(a);
  // CHECK-NEXT: ret
}

float16x4_t test_vget_low_f16(float16x8_t a) {
  // CHECK-LABEL: test_vget_low_f16:
  return vget_low_f16(a);
  // CHECK-NEXT: ret
}

float32x2_t test_vget_low_f32(float32x4_t a) {
  // CHECK-LABEL: test_vget_low_f32:
  return vget_low_f32(a);
  // CHECK-NEXT: ret
}

poly8x8_t test_vget_low_p8(poly8x16_t a) {
  // CHECK-LABEL: test_vget_low_p8:
  return vget_low_p8(a);
  // CHECK-NEXT: ret
}

poly16x4_t test_vget_low_p16(poly16x8_t a) {
  // CHECK-LABEL: test_vget_low_p16:
  return vget_low_p16(a);
  // CHECK-NEXT: ret
}

float64x1_t test_vget_low_f64(float64x2_t a) {
  // CHECK-LABEL: test_vget_low_f64:
  return vget_low_f64(a);
  // CHECK-NEXT: ret
}