[PATCH] D20308: [SystemZ] Fix register ordering for BinaryRRF instructions
Zhan Jun Liau via llvm-commits
llvm-commits at lists.llvm.org
Mon May 16 15:23:23 PDT 2016
zhanjunl added a comment.
A simple testcase is:
<test.cpp>
#include <stdio.h>
#include <cmath>
double cpsdr(double a, double b) {
return copysign(a,b);
}
double a = 1.0;
double b = -2.0;
int main () {
printf("ret is %lf\n", cpsdr(a, b));
return 0;
}
</test.cpp>
The expected result is -1.0, but the return of clang is 2.0.
http://reviews.llvm.org/D20308
More information about the llvm-commits
mailing list