From 0274ba35ea0589e6708b7f8824dd4219fa673352 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 23 Jun 2022 19:02:39 -0700 Subject: Fix assembler warning-as-error on some Aarch32 toolchains: third_party/ruy/ruy/kernel_arm32.cc:285:10: error: applying IT instruction to more than one subsequent instruction is deprecated [-Werror,-Winline-asm] "ite eq\n" PiperOrigin-RevId: 456909969 --- ruy/kernel_arm32.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ruy/kernel_arm32.cc b/ruy/kernel_arm32.cc index c8e053d..dfa9eb4 100644 --- a/ruy/kernel_arm32.cc +++ b/ruy/kernel_arm32.cc @@ -282,8 +282,9 @@ void KernelFloat32Neon(const KernelParamsFloat<8, 4>& params) { // Let r8 be stack offset of the row or column variable, whichever // is the channel index. "tst r4, #" RUY_STR(RUY_ASM_FLAG_CHANNEL_DIMENSION_IS_COL) "\n" - "ite eq\n" + "it eq\n" "moveq r8, #" RUY_STR(RUY_STACK_OFFSET_ROW) "\n" + "it ne\n" "movne r8, #" RUY_STR(RUY_STACK_OFFSET_COL) "\n" // Let r8 be the channel index. "ldr r8, [sp, r8]\n" @@ -896,8 +897,9 @@ void Kernel8bitNeon(const KernelParams8bit<4, 2>& params) { // Let r8 be stack offset of the row or column variable, whichever // is the channel index. "tst r4, #" RUY_STR(RUY_ASM_FLAG_CHANNEL_DIMENSION_IS_COL) "\n" - "ite eq\n" + "it eq\n" "moveq r8, #" RUY_STR(RUY_STACK_OFFSET_ROW) "\n" + "it ne\n" "movne r8, #" RUY_STR(RUY_STACK_OFFSET_COL) "\n" // Let r8 be the channel index. "ldr r8, [sp, r8]\n" -- cgit v1.2.3