sim: bfin: add tests for new shift behavior
authorMike Frysinger <vapier@gentoo.org>
Mon, 19 Mar 2012 05:25:50 +0000 (05:25 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 19 Mar 2012 05:25:50 +0000 (05:25 +0000)
sim/testsuite/sim/bfin/ChangeLog
sim/testsuite/sim/bfin/c_dsp32shiftim_amix.s

index 1dc3cca75cd9161fbb4cbb0b6f37aec7ff00d0c6..828ad62145a2c46566d6d1c5de3ceae4f26de453 100644 (file)
@@ -1,3 +1,7 @@
+2012-03-19  Stuart Henderson  <stuart.henderson@analog.com>
+
+       * c_dsp32shiftim_amix.s: Check edge cases in shift behavior.
+
 2012-03-19  Robin Getz  <robin.getz@analog.com>
 
        * random_0014.S, random_0015.S, random_0016.S: New tests for shifts.
index 1bf91784556ecc70f81afec42fd457c0b27c78b8..d1c0c20ea34c5b12302fa585cb5ad8237ddfa06e 100644 (file)
@@ -114,6 +114,13 @@ R7 = R2 << 5 (S); /* r7 = 0x80000000 */
 CHECKREG r6, 0x80000000;
 CHECKREG r7, 0x80000000;
 
+imm32 r0, 0xFFFFFFF4;
+imm32 r2, 0xFFF00001;
+R6 = R0 << 31 (S); /* r6 = 0x80000000 */
+R7 = R2 << 31 (S); /* r7 = 0x80000000 */
+CHECKREG r6, 0x80000000;
+CHECKREG r7, 0x80000000;
+
 
 // Ashift : NEGATIVE data, count (-)=right (half reg) Working ok
 imm32 r0, 0x80f080f0;