Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid output constraint '=&r*i' in asm #47

Open
Urvika-gola opened this issue Oct 15, 2016 · 0 comments
Open

invalid output constraint '=&r*i' in asm #47

Urvika-gola opened this issue Oct 15, 2016 · 0 comments

Comments

@Urvika-gola
Copy link
Contributor

Environment details : Windows 10 64bit x64, Intel Core i5.
ndk version : android-ndk-r13-windows-x86_64

Error :
jni/g729/siphon-g729/Headers\basic_op.h:641:21: error: invalid output constraint '=&r_i' in asm
: "=&r_i"(out),
​and in line 700: ​
'=&r*i' in asm

Diagnosis : I read the documentation and the "_i" output constraint syntax was not found in the asm Library. I think, the gcc compiler which my version of ndk build was using could not understand "_i"
​There seems to be some mismatch in the constraints that the compiler on my system was identifying . Possibly due to deprecation or version changes. Since it is assembly language level change I removed that unidentified constraint on one of the output register.
Solution : Changed “=&r*i"(out) to "=&r"(out)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant