aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/aarch64/aarch64-builtins.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/aarch64/aarch64-builtins.cc')
-rw-r--r--gcc/config/aarch64/aarch64-builtins.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/config/aarch64/aarch64-builtins.cc b/gcc/config/aarch64/aarch64-builtins.cc
index 4f735e8..eb44580 100644
--- a/gcc/config/aarch64/aarch64-builtins.cc
+++ b/gcc/config/aarch64/aarch64-builtins.cc
@@ -193,7 +193,7 @@ using namespace aarch64;
#define SIMD_MAX_BUILTIN_ARGS 5
/* Flags that describe what a function might do. */
-const unsigned int FLAG_NONE = 0U;
+const unsigned int FLAG_DEFAULT = 0U;
const unsigned int FLAG_READ_FPCR = 1U << 0;
const unsigned int FLAG_RAISE_FP_EXCEPTIONS = 1U << 1;
const unsigned int FLAG_READ_MEMORY = 1U << 2;
@@ -913,7 +913,7 @@ static aarch64_fcmla_laneq_builtin_datum aarch64_fcmla_lane_builtin_data[] = {
2, \
{ SIMD_INTR_MODE(A, L), SIMD_INTR_MODE(B, L) }, \
{ SIMD_INTR_QUAL(A), SIMD_INTR_QUAL(B) }, \
- FLAG_NONE, \
+ FLAG_DEFAULT, \
SIMD_INTR_MODE(A, L) == SIMD_INTR_MODE(B, L) \
&& SIMD_INTR_QUAL(A) == SIMD_INTR_QUAL(B) \
},
@@ -925,7 +925,7 @@ static aarch64_fcmla_laneq_builtin_datum aarch64_fcmla_lane_builtin_data[] = {
2, \
{ SIMD_INTR_MODE(A, d), SIMD_INTR_MODE(A, q) }, \
{ SIMD_INTR_QUAL(A), SIMD_INTR_QUAL(A) }, \
- FLAG_NONE, \
+ FLAG_DEFAULT, \
false \
},
@@ -936,7 +936,7 @@ static aarch64_fcmla_laneq_builtin_datum aarch64_fcmla_lane_builtin_data[] = {
2, \
{ SIMD_INTR_MODE(A, d), SIMD_INTR_MODE(A, q) }, \
{ SIMD_INTR_QUAL(A), SIMD_INTR_QUAL(A) }, \
- FLAG_NONE, \
+ FLAG_DEFAULT, \
false \
},
@@ -1857,7 +1857,7 @@ aarch64_init_crc32_builtins ()
aarch64_crc_builtin_datum* d = &aarch64_crc_builtin_data[i];
tree argtype = aarch64_simd_builtin_type (d->mode, qualifier_unsigned);
tree ftype = build_function_type_list (usi_type, usi_type, argtype, NULL_TREE);
- tree attrs = aarch64_get_attributes (FLAG_NONE, d->mode);
+ tree attrs = aarch64_get_attributes (FLAG_DEFAULT, d->mode);
tree fndecl
= aarch64_general_add_builtin (d->name, ftype, d->fcode, attrs);
@@ -2232,7 +2232,7 @@ static void
aarch64_init_data_intrinsics (void)
{
/* These intrinsics are not fp nor they read/write memory. */
- tree attrs = aarch64_get_attributes (FLAG_NONE, SImode);
+ tree attrs = aarch64_get_attributes (FLAG_DEFAULT, SImode);
tree uint32_fntype = build_function_type_list (uint32_type_node,
uint32_type_node, NULL_TREE);
tree ulong_fntype = build_function_type_list (long_unsigned_type_node,
@@ -4048,7 +4048,7 @@ aarch64_general_gimple_fold_builtin (unsigned int fcode, gcall *stmt,
switch (fcode)
{
BUILTIN_VALL (UNOP, reduc_plus_scal_, 10, ALL)
- BUILTIN_VDQ_I (UNOPU, reduc_plus_scal_, 10, NONE)
+ BUILTIN_VDQ_I (UNOPU, reduc_plus_scal_, 10, DEFAULT)
new_stmt = gimple_build_call_internal (IFN_REDUC_PLUS,
1, args[0]);
gimple_call_set_lhs (new_stmt, gimple_call_lhs (stmt));
@@ -4062,8 +4062,8 @@ aarch64_general_gimple_fold_builtin (unsigned int fcode, gcall *stmt,
break;
BUILTIN_VDC (BINOP, combine, 0, QUIET)
- BUILTIN_VD_I (BINOPU, combine, 0, NONE)
- BUILTIN_VDC_P (BINOPP, combine, 0, NONE)
+ BUILTIN_VD_I (BINOPU, combine, 0, DEFAULT)
+ BUILTIN_VDC_P (BINOPP, combine, 0, DEFAULT)
{
tree first_part, second_part;
if (BYTES_BIG_ENDIAN)
@@ -4152,14 +4152,14 @@ aarch64_general_gimple_fold_builtin (unsigned int fcode, gcall *stmt,
1, args[0]);
gimple_call_set_lhs (new_stmt, gimple_call_lhs (stmt));
break;
- BUILTIN_VSDQ_I_DI (BINOP, ashl, 3, NONE)
+ BUILTIN_VSDQ_I_DI (BINOP, ashl, 3, DEFAULT)
if (TREE_CODE (args[1]) == INTEGER_CST
&& wi::ltu_p (wi::to_wide (args[1]), element_precision (args[0])))
new_stmt = gimple_build_assign (gimple_call_lhs (stmt),
LSHIFT_EXPR, args[0], args[1]);
break;
- BUILTIN_VSDQ_I_DI (BINOP, sshl, 0, NONE)
- BUILTIN_VSDQ_I_DI (BINOP_UUS, ushl, 0, NONE)
+ BUILTIN_VSDQ_I_DI (BINOP, sshl, 0, DEFAULT)
+ BUILTIN_VSDQ_I_DI (BINOP_UUS, ushl, 0, DEFAULT)
{
tree cst = args[1];
tree ctype = TREE_TYPE (cst);
@@ -4191,10 +4191,10 @@ aarch64_general_gimple_fold_builtin (unsigned int fcode, gcall *stmt,
}
}
break;
- BUILTIN_VDQ_I (SHIFTIMM, ashr, 3, NONE)
- VAR1 (SHIFTIMM, ashr_simd, 0, NONE, di)
- BUILTIN_VDQ_I (USHIFTIMM, lshr, 3, NONE)
- VAR1 (USHIFTIMM, lshr_simd, 0, NONE, di)
+ BUILTIN_VDQ_I (SHIFTIMM, ashr, 3, DEFAULT)
+ VAR1 (SHIFTIMM, ashr_simd, 0, DEFAULT, di)
+ BUILTIN_VDQ_I (USHIFTIMM, lshr, 3, DEFAULT)
+ VAR1 (USHIFTIMM, lshr_simd, 0, DEFAULT, di)
if (TREE_CODE (args[1]) == INTEGER_CST
&& wi::ltu_p (wi::to_wide (args[1]), element_precision (args[0])))
new_stmt = gimple_build_assign (gimple_call_lhs (stmt),