Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9089031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:02:46+00:00 2026-06-16T22:02:46+00:00

I got error when i tried to compile inline assembly with qadd command. Error:

  • 0

I got error when i tried to compile inline assembly with qadd command.

Error: cannot honor width suffix — `qadd r7,r7,r1′

I know that qadd is supported in ARMv5TE

These ARM instructions are available in ARMv6 and above, and E
variants of ARMv5T.

C/asm code:

inline int __qadd(int a, int b) {
    __asm__ (
            "qadd %0, %1, %2" : "=r" (a) : "r" (a), "r" (b));
    return a;
}

My cpu features is:

LOGI("__ARM_ARCH__='%d'", __ARM_ARCH__);
LOGI("__ARM_HAVE_5TE='%d'", __ARM_HAVE_5TE);

Output:

__ARM_ARCH__=’5′
__ARM_HAVE_5TE=’1′

I have next compiler flags:

LOCAL_CFLAGS += -std=c99 -ffast-math -march=armv5te

Besides i have tried replace add instead of qadd – nicely works but with qadd code not compiles.

What i’m doing wrong? Who can provide worked example of qadd command in assembly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T22:02:47+00:00Added an answer on June 16, 2026 at 10:02 pm

    Solution here No qsort_r for Android (or how to disable force Thumb to use CLZ in Android ARM code)

    In your Android.mk file, add “.arm” to the filenames and they will get
    compiled as ARM mode instead of Thumb mode (e.g. sort.c.arm). I’ve had
    mixed Thumb/ARM code in an Android native library and it worked fine.

    Question is closed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got this error when I tried to compile an application that includes the
Got the following error when I tried to compile a C application in 64-bit
In my wordpress multisite, in the main website, I got error when I tried
I just tried to run my test app and I got this error: 2012-06-16
I tried to split a string in a linq query. I got an error
I tried installing TurboGears 1.0 on Windows 7 using tgsetup.py. and got following error
I tried to update some part of a matrix, I got the following error
How do I compile and run a servlet from the Command Prompt? I got
i tried to compile by iphone app in xcode and i got this Code
It tried the following in REPL and got no error (because of lazy evaluation):

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.