On Monday, October 30, 2017 at 6:22:20 PM UTC-4, Lingwei Zhan wrote: > > I am trying to use QBLT to compare two numbers and found out when one > number is negative, the QBLT logic does not seem make right comparison. In > the following code, before QBLT, r3 =1-4 = -3, and r2 = 10, so r3 < r2, > then the code should execute MOV r3, -1. However, when I run this macro, r3 > is set to 1. > Anyone notices this issue? Any idea how to fix it? > I looked at the description and couldn't find the specification, but perhaps the comparison treats the numbers as unsigned; the bit pattern of negative 2-complement number, interpreted as unsigned results in large numbers, so the comparison would come out the way you observe.
> > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/07af40f3-a838-4f78-abab-cd07553a7687%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
