On Fri, Apr 08, 2011 at 12:14:11AM +0200, [email protected] wrote:
> Try this:
> 
> ---[ test.S ]---
> // gcc -march=loongson2f test.S -o test
> .text
> .global main
> main:
>         ldc1 $f1, a
>         ldc1 $f2, b
>         madd.d $f0, $f1, $f2
>         jalr $t9
>         nop
> 
> .data
> a:      .quad 0x0
> b:      .quad 0x7ff7ffffffffffff
> ---[ test.S ]---

Sorry, I don't know mips assembler at all, or gas.
I run this into gdb, I 'stepi', and I don't see the proper values loaded into
the floating point registers.

Is it me doing something wrong? It looks like those ldc1 go compiled into
totally different instructions, not referring to 'a' or 'b'.

Regards,
Lluís.

-- 
You received this message because you are subscribed to the Google Groups 
"loongson-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/loongson-dev?hl=en.

Reply via email to