Displaying 2 results from an estimated 2 matches for "lfb7".
Did you mean:
2fb7
2007 Oct 19
2
[LLVMdev] llvm_fcmp_ord and llvm_fcmp_uno and assembly code generation
...Y; }
static inline int llvm_fcmp_uno(double X, double Y) { return X != X || Y != Y; }
int x(double X, double Y)
{
return llvm_fcmp_uno(X,Y);
}
int xx(double X, double Y)
{
return isunordered(X, Y);
}
$ gcc -std=c99 -O3 -S x.c -o x.gcc.s
$ llvm-gcc -std=c99 -O3 -S x.c -o x.llvm.s
x.gcc.s:
x:
.LFB7:
movl $1, %eax
ucomisd %xmm0, %xmm0
jne .L5
jp .L5
xorl %eax, %eax
ucomisd %xmm1, %xmm1
setp %al
.L5:
rep ; ret
.LFE7:
.size x, .-x
.p2align 4,,15
.globl xx
.type xx, @function
xx:
.LFB8:
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setp %al
ret
x.llvm.s:
x:
pxor %xmm2, %xmm2
ucomisd %xmm...
2007 Oct 22
0
[LLVMdev] llvm_fcmp_ord and llvm_fcmp_uno and assembly code generation
...!= Y; }
> int x(double X, double Y)
> {
> return llvm_fcmp_uno(X,Y);
> }
>
> int xx(double X, double Y)
> {
> return isunordered(X, Y);
> }
>
> $ gcc -std=c99 -O3 -S x.c -o x.gcc.s
> $ llvm-gcc -std=c99 -O3 -S x.c -o x.llvm.s
>
> x.gcc.s:
> x:
> .LFB7:
> movl $1, %eax
> ucomisd %xmm0, %xmm0
> jne .L5
> jp .L5
> xorl %eax, %eax
> ucomisd %xmm1, %xmm1
> setp %al
> .L5:
> rep ; ret
> .LFE7:
> .size x, .-x
> .p2align 4,,15
> .globl xx
> .type xx, @function
> xx:
> .LFB8:
> xorl %eax, %ea...