Using floating point instructions
Using floating point instructions
- Subject: Using floating point instructions
- From: G 3 <email@hidden>
- Date: Tue, 06 Dec 2016 13:30:52 -0500
I'm working on a program that calls PowerPC assembly floating point
instructions from C. It would have calls like this:
double inputA, inputB, answer;
asm volatile("fadd %0, %1, %2" : "=f" (answer) : "f" (inputA),
"f" (inputB)); // answer = inputA + inputB
The odd thing is it only works in the debug configuration in XCode.
In Release configuration, I see this error:
error: output constraint 0 must specify a single register
error: output operand 0 must use '&' constraint
Is there a way to fix this problem?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden