Skip to contentSkip to conversation

crnot and crnor

Qemu-devel claude vittoria 1 participant 1 message Dec 31, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I test the PPC fpu with machar test (http://orion.math.iastate.edu/burkardt/c_src/machar/machar.html).
I get an error with qemu-cvs :
invalid bits: 00000042 for opcode: 13 - 01 - 01 (4fdef042) 00037e60

ASM code :
00037e54 <__isnan>:

   37e54:	fc 00 04 8e 	mffs    f0
   37e58:	ff 00 00 8c 	mtfsb0  4*cr6+lt 
   37e5c:	ff 81 08 00 	fcmpu   cr7,f1,f1
   37e60:	4f de f0 42 	crnot   4*cr7+eq,4*cr7+eq  <=====================faillure here, crnot bx,by equivalent to crnor bx,by,by
   37e64:	7c 60 00 26 	mfcr    r3
   37e68:	54 63 ff fe 	rlwinm  r3,r3,31,31,31
   37e6c:	fd fe 05 8e 	mtfsf   255,f0

37e70: 4e 80 00 20 b

I don't understand why the decoding of this instruction fails.
Those seems to be the same error that I reported 1 month ago about crnand and a seg fault.

If someone has a clue...

Thanks,
Claude