xtensa: umulsidi3: fix conditional expression
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 20 Sep 2023 05:21:38 +0000 (22:21 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 20 Sep 2023 12:03:22 +0000 (05:03 -0700)
commit9aecda97ec3deecbfa7670877c8ddfd3d0fc87c4
tree97b41bece08f8add491c0f482d3ebf5e0e7e3ea5
parent54d3d7d363823782c3444ddc41bb8cf1edc80514
xtensa: umulsidi3: fix conditional expression

Even when a variant has one or more of these defines set to 1, the
multiplier code paths are not used. Change the expression so that the
correct code paths are used.

arch/xtensa/lib/umulsidi3.S:44:38: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef]
   44 | #if defined(__XTENSA_CALL0_ABI__) && XCHAL_NO_MUL
arch/xtensa/lib/umulsidi3.S:145:38: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef]
  145 | #if defined(__XTENSA_CALL0_ABI__) && XCHAL_NO_MUL
arch/xtensa/lib/umulsidi3.S:159:5: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef]
  159 | #if XCHAL_NO_MUL

Fixes: 8939c58d68f9 ("xtensa: add __umulsidi3 helper")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Message-Id: <20230920052139.10570-16-rdunlap@infradead.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/lib/umulsidi3.S