File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 8
8
// RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \
9
9
// RUN: | FileCheck --strict-whitespace %s
10
10
11
+ // CHECK-LABEL: FunctionDecl {{.*}} no_fpfeatures_func_01 'vector2float (vector2double)'
12
+ // CHECK: CompoundStmt {{.*\>$}}
13
+ // CHECK: ReturnStmt
14
+ // CHECK: ConvertVectorExpr {{.*}} 'vector2float':'__attribute__((__vector_size__(2 * sizeof(float)))) float'{{$}}
15
+
16
+ typedef double vector2double __attribute__ ((__vector_size__(16 )));
17
+ typedef float vector2float __attribute__ ((__vector_size__(8 )));
18
+ vector2float no_fpfeatures_func_01 (vector2double x) {
19
+ return __builtin_convertvector (x, vector2float);
20
+ }
21
+
11
22
float func_01 (float x);
12
23
13
24
template <typename T>
@@ -255,8 +266,6 @@ float func_23(float x, float y) {
255
266
// CHECK: ReturnStmt
256
267
// CHECK: ConvertVectorExpr {{.*}} FPContractMode=2 ConstRoundingMode=towardzero
257
268
258
- typedef double vector2double __attribute__ ((__vector_size__(16 )));
259
- typedef float vector2float __attribute__ ((__vector_size__(8 )));
260
269
#pragma STDC FENV_ROUND FE_TOWARDZERO
261
270
vector2float func_24 (vector2double x) {
262
271
return __builtin_convertvector (x, vector2float);
You can’t perform that action at this time.
0 commit comments