From 937337890108676b3588d77bd704927d349db71b Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Mon, 29 Jul 2019 15:31:53 +0000 Subject: [PATCH] [arm] Make ACLE builtins use arm_* namespace for expanders The builtins from use fairly general expander names such as "crc", "mcr" etc. These run the risk of being reserved by the midend in the future. Let's namespace them to arm_* as is convention. * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to CODE_FOR_arm_##. * config/arm/arm.md (): Rename to... (arm_): ... This. (): Rename to... (arm_): ... This. (): Rename to... (arm_): ... This. (): Rename to... (arm_): ... This. (): Rename to... (arm_): ... This. (): Rename to... (arm_): ... This. (): Rename to... (arm_): ... This. (): Rename to... (arm_): ... This. From-SVN: r273879 --- gcc/ChangeLog | 21 +++++++++++++++++++++ gcc/config/arm/arm-builtins.c | 2 +- gcc/config/arm/arm.md | 16 ++++++++-------- 3 files changed, 30 insertions(+), 9 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7bdb466e097..2d981f61fd8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,24 @@ +2019-07-29 Kyrylo Tkachov + + * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to + CODE_FOR_arm_##. + * config/arm/arm.md (): Rename to... + (arm_): ... This. + (): Rename to... + (arm_): ... This. + (): Rename to... + (arm_): ... This. + (): Rename to... + (arm_): ... This. + (): Rename to... + (arm_): ... This. + (): Rename to... + (arm_): ... This. + (): Rename to... + (arm_): ... This. + (): Rename to... + (arm_): ... This. + 2019-07-29 Richard Biener PR tree-optimization/91257 diff --git a/gcc/config/arm/arm-builtins.c b/gcc/config/arm/arm-builtins.c index 8f2c9374379..07da55e10a3 100644 --- a/gcc/config/arm/arm-builtins.c +++ b/gcc/config/arm/arm-builtins.c @@ -376,7 +376,7 @@ static arm_builtin_datum neon_builtin_data[] = #undef CF #undef VAR1 #define VAR1(T, N, A) \ - {#N, UP (A), CODE_FOR_##N, 0, T##_QUALIFIERS}, + {#N, UP (A), CODE_FOR_arm_##N, 0, T##_QUALIFIERS}, static arm_builtin_datum acle_builtin_data[] = { diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index 7ab939a35f5..ccc48a57dda 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -12062,7 +12062,7 @@ (set_attr "predicable" "yes")]) ;; ARMv8 CRC32 instructions. -(define_insn "" +(define_insn "arm_" [(set (match_operand:SI 0 "s_register_operand" "=r") (unspec:SI [(match_operand:SI 1 "s_register_operand" "r") (match_operand: 2 "s_register_operand" "r")] @@ -12178,7 +12178,7 @@ DONE; }) -(define_insn "" +(define_insn "arm_" [(unspec_volatile [(match_operand:SI 0 "immediate_operand" "n") (match_operand:SI 1 "immediate_operand" "n") (match_operand:SI 2 "immediate_operand" "n") @@ -12224,19 +12224,19 @@ [(set_attr "length" "4") (set_attr "type" "coproc")]) -(define_expand "" +(define_expand "arm_" [(unspec_volatile [(match_operand:SI 0 "immediate_operand") (match_operand:SI 1 "immediate_operand") (mem:SI (match_operand:SI 2 "s_register_operand"))] LDCI)] "arm_coproc_builtin_available (VUNSPEC_)") -(define_expand "" +(define_expand "arm_" [(unspec_volatile [(match_operand:SI 0 "immediate_operand") (match_operand:SI 1 "immediate_operand") (mem:SI (match_operand:SI 2 "s_register_operand"))] STCI)] "arm_coproc_builtin_available (VUNSPEC_)") -(define_insn "" +(define_insn "arm_" [(unspec_volatile [(match_operand:SI 0 "immediate_operand" "n") (match_operand:SI 1 "immediate_operand" "n") (match_operand:SI 2 "s_register_operand" "r") @@ -12256,7 +12256,7 @@ [(set_attr "length" "4") (set_attr "type" "coproc")]) -(define_insn "" +(define_insn "arm_" [(set (match_operand:SI 0 "s_register_operand" "=r") (unspec_volatile:SI [(match_operand:SI 1 "immediate_operand" "n") (match_operand:SI 2 "immediate_operand" "n") @@ -12275,7 +12275,7 @@ [(set_attr "length" "4") (set_attr "type" "coproc")]) -(define_insn "" +(define_insn "arm_" [(unspec_volatile [(match_operand:SI 0 "immediate_operand" "n") (match_operand:SI 1 "immediate_operand" "n") (match_operand:DI 2 "s_register_operand" "r") @@ -12291,7 +12291,7 @@ [(set_attr "length" "4") (set_attr "type" "coproc")]) -(define_insn "" +(define_insn "arm_" [(set (match_operand:DI 0 "s_register_operand" "=r") (unspec_volatile:DI [(match_operand:SI 1 "immediate_operand" "n") (match_operand:SI 2 "immediate_operand" "n") -- 2.30.2