Lines Matching refs:TESTINST2
9 #define TESTINST2(instruction, RMval, RD, RM, carryin) \
144 TESTINST2("mov r0, r1", 1, r0, r1, 0);
145 TESTINST2("cpy r0, r1", 1, r0, r1, 0);
146 TESTINST2("mov r0, #0", 0, r0, r1, 0);
147 TESTINST2("mov r0, #1", 0, r0, r1, 0);
149 TESTINST2("movs r0, r1", 1, r0, r1, c);
150 TESTINST2("movs r0, r1", 0, r0, r1, c);
151 TESTINST2("movs r0, r1", 0x80000000, r0, r1, c);
152 TESTINST2("movs r0, #0", 0, r0, r1, c);
153 TESTINST2("movs r0, #1", 0, r0, r1, c);
157 TESTINST2("mvn r0, r1", 1, r0, r1, 0);
159 TESTINST2("mvns r0, r1", 1, r0, r1, c);
160 TESTINST2("mvns r0, r1", 0, r0, r1, c);
161 TESTINST2("mvns r0, r1", 0x80000000, r0, r1, c);
216 TESTINST2("lsl r0, r1, #0", 0xffffffff, r0, r1, c);
217 TESTINST2("lsl r0, r1, #1", 0xffffffff, r0, r1, c);
218 TESTINST2("lsl r0, r1, #31", 0xffffffff, r0, r1, c);
219 TESTINST2("lsl r0, r1, #0", 0x1, r0, r1, c);
220 TESTINST2("lsl r0, r1, #1", 0x1, r0, r1, c);
221 TESTINST2("lsl r0, r1, #31", 0x1, r0, r1, c);
222 TESTINST2("lsl r0, r1, #31", 0x2, r0, r1, c);
227 TESTINST2("lsls r0, r1, #0", 0xffffffff, r0, r1, c);
228 TESTINST2("lsls r0, r1, #1", 0xffffffff, r0, r1, c);
229 TESTINST2("lsls r0, r1, #31", 0xffffffff, r0, r1, c);
230 TESTINST2("lsls r0, r1, #0", 0x1, r0, r1, c);
231 TESTINST2("lsls r0, r1, #1", 0x1, r0, r1, c);
232 TESTINST2("lsls r0, r1, #31", 0x1, r0, r1, c);
233 TESTINST2("lsls r0, r1, #31", 0x2, r0, r1, c);
262 TESTINST2("lsr r0, r1, #0", 0xffffffff, r0, r1, 0);
263 TESTINST2("lsr r0, r1, #1", 0xffffffff, r0, r1, 0);
264 TESTINST2("lsr r0, r1, #31", 0xffffffff, r0, r1, 0);
265 TESTINST2("lsr r0, r1, #32", 0xffffffff, r0, r1, 0);
266 TESTINST2("lsr r0, r1, #16", 0x00010000, r0, r1, 0);
267 TESTINST2("lsr r0, r1, #17", 0x00010000, r0, r1, 0);
268 TESTINST2("lsr r0, r1, #18", 0x00010000, r0, r1, 0);
272 TESTINST2("lsrs r0, r1, #0", 0xffffffff, r0, r1, c);
273 TESTINST2("lsrs r0, r1, #1", 0xffffffff, r0, r1, c);
274 TESTINST2("lsrs r0, r1, #31", 0xffffffff, r0, r1, c);
275 TESTINST2("lsrs r0, r1, #32", 0xffffffff, r0, r1, c);
276 TESTINST2("lsrs r0, r1, #16", 0x00010000, r0, r1, c);
277 TESTINST2("lsrs r0, r1, #17", 0x00010000, r0, r1, c);
278 TESTINST2("lsrs r0, r1, #18", 0x00010000, r0, r1, c);
342 TESTINST2("asr r0, r1, #0", 0xffffffff, r0, r1, 0);
343 TESTINST2("asr r0, r1, #1", 0xffffffff, r0, r1, 0);
344 TESTINST2("asr r0, r1, #31", 0xffffffff, r0, r1, 0);
345 TESTINST2("asr r0, r1, #32", 0xffffffff, r0, r1, 0);
346 TESTINST2("asr r0, r1, #0", 0x7fffffff, r0, r1, 0);
347 TESTINST2("asr r0, r1, #1", 0x7fffffff, r0, r1, 0);
348 TESTINST2("asr r0, r1, #31", 0x7fffffff, r0, r1, 0);
349 TESTINST2("asr r0, r1, #32", 0x7fffffff, r0, r1, 0);
350 TESTINST2("asr r0, r1, #16", 0x00010000, r0, r1, 0);
351 TESTINST2("asr r0, r1, #17", 0x00010000, r0, r1, 0);
352 TESTINST2("asr r0, r1, #18", 0x00010000, r0, r1, 0);
356 TESTINST2("asrs r0, r1, #0", 0xffffffff, r0, r1, c);
357 TESTINST2("asrs r0, r1, #1", 0xffffffff, r0, r1, c);
358 TESTINST2("asrs r0, r1, #31", 0xffffffff, r0, r1, c);
359 TESTINST2("asrs r0, r1, #32", 0xffffffff, r0, r1, c);
360 TESTINST2("asrs r0, r1, #0", 0x7fffffff, r0, r1, c);
361 TESTINST2("asrs r0, r1, #1", 0x7fffffff, r0, r1, c);
362 TESTINST2("asrs r0, r1, #31", 0x7fffffff, r0, r1, c);
363 TESTINST2("asrs r0, r1, #32", 0x7fffffff, r0, r1, c);
364 TESTINST2("asrs r0, r1, #16", 0x00010000, r0, r1, c);
365 TESTINST2("asrs r0, r1, #17", 0x00010000, r0, r1, c);
366 TESTINST2("asrs r0, r1, #18", 0x00010000, r0, r1, c);
405 TESTINST2("ror r0, r1, #0", 0x00088000, r0, r1, c);
406 TESTINST2("ror r0, r1, #1", 0x00088000, r0, r1, c);
407 TESTINST2("ror r0, r1, #31", 0x00088000, r0, r1, c);
408 TESTINST2("ror r0, r1, #16", 0x00010000, r0, r1, c);
409 TESTINST2("ror r0, r1, #17", 0x00010000, r0, r1, c);
410 TESTINST2("ror r0, r1, #18", 0x00010000, r0, r1, c);
415 TESTINST2("rors r0, r1, #0", 0x00088000, r0, r1, c);
416 TESTINST2("rors r0, r1, #1", 0x00088000, r0, r1, c);
417 TESTINST2("rors r0, r1, #31", 0x00088000, r0, r1, c);
418 TESTINST2("rors r0, r1, #16", 0x00010000, r0, r1, c);
419 TESTINST2("rors r0, r1, #17", 0x00010000, r0, r1, c);
420 TESTINST2("rors r0, r1, #18", 0x00010000, r0, r1, c);
609 TESTINST2("clz r0, r1", 0, r0, r1, c);
610 TESTINST2("clz r0, r1", 1, r0, r1, c);
611 TESTINST2("clz r0, r1", 0x10, r0, r1, c);
612 TESTINST2("clz r0, r1", 0xffffffff, r0, r1, c);
616 TESTINST2("uxtb r0, r1", 0, r0, r1, 0);
617 TESTINST2("uxtb r0, r1", 1, r0, r1, 0);
618 TESTINST2("uxtb r0, r1", 0xff, r0, r1, 0);
619 TESTINST2("uxtb r0, r1", 0xffffffff, r0, r1, 0);
620 TESTINST2("sxtb r0, r1", 0, r0, r1, 0);
621 TESTINST2("sxtb r0, r1", 1, r0, r1, 0);
622 TESTINST2("sxtb r0, r1", 0xff, r0, r1, 0);
623 TESTINST2("sxtb r0, r1", 0xffffffff, r0, r1, 0);
625 TESTINST2("uxth r0, r1", 0, r0, r1, 0);
626 TESTINST2("uxth r0, r1", 1, r0, r1, 0);
627 TESTINST2("uxth r0, r1", 0xffff, r0, r1, 0);
628 TESTINST2("uxth r0, r1", 0xffffffff, r0, r1, 0);
629 TESTINST2("sxth r0, r1", 0, r0, r1, 0);
630 TESTINST2("sxth r0, r1", 1, r0, r1, 0);
631 TESTINST2("sxth r0, r1", 0x7fff, r0, r1, 0);
632 TESTINST2("sxth r0, r1", 0xffff, r0, r1, 0);
633 TESTINST2("sxth r0, r1", 0x10ffff, r0, r1, 0);
634 TESTINST2("sxth r0, r1", 0x107fff, r0, r1, 0);
635 TESTINST2("sxth r0, r1", 0xffffffff, r0, r1, 0);
637 TESTINST2("uxtb r0, r1, ror #0", 0x000000ff, r0, r1, 0);
638 TESTINST2("uxtb r0, r1, ror #8", 0x000000ff, r0, r1, 0);
639 TESTINST2("uxtb r0, r1, ror #8", 0x0000ff00, r0, r1, 0);
640 TESTINST2("uxtb r0, r1, ror #16", 0x00ff0000, r0, r1, 0);
641 TESTINST2("uxtb r0, r1, ror #24", 0xff000000, r0, r1, 0);
643 TESTINST2("uxtb16 r0, r1", 0xffffffff, r0, r1, 0);
644 TESTINST2("uxtb16 r0, r1, ror #16", 0x0000ffff, r0, r1, 0);
645 TESTINST2("sxtb16 r0, r1", 0xffffffff, r0, r1, 0);
646 TESTINST2("sxtb16 r0, r1", 0x00ff00ff, r0, r1, 0);
647 TESTINST2("sxtb16 r0, r1", 0x007f007f, r0, r1, 0);
652 TESTINST2("bfi r0, r1, #0, #11", 0xAAAAAAAA, r0, r1, 0);
653 TESTINST2("bfi r0, r1, #1, #11", 0xAAAAAAAA, r0, r1, 0);
654 TESTINST2("bfi r0, r1, #2, #11", 0xAAAAAAAA, r0, r1, 0);
656 TESTINST2("bfi r0, r1, #19, #11", 0xFFFFFFFF, r0, r1, 0);
657 TESTINST2("bfi r0, r1, #20, #11", 0xFFFFFFFF, r0, r1, 0);
658 TESTINST2("bfi r0, r1, #21, #11", 0xFFFFFFFF, r0, r1, 0);
660 TESTINST2("bfi r0, r1, #0, #32", 0xFFFFFFFF, r0, r1, 0);
661 TESTINST2("bfi r0, r1, #1, #31", 0xFFFFFFFF, r0, r1, 0);
663 TESTINST2("bfi r0, r1, #29, #3", 0xFFFFFFFF, r0, r1, 0);
664 TESTINST2("bfi r0, r1, #30, #2", 0xFFFFFFFF, r0, r1, 0);
665 TESTINST2("bfi r0, r1, #31, #1", 0xFFFFFFFF, r0, r1, 0);
670 TESTINST2("bfc r0, #0, #11", 0xAAAAAAAA, r0, r1, 0);
671 TESTINST2("bfc r0, #1, #11", 0xAAAAAAAA, r0, r1, 0);
672 TESTINST2("bfc r0, #2, #11", 0xAAAAAAAA, r0, r1, 0);
674 TESTINST2("bfc r0, #19, #11", 0xFFFFFFFF, r0, r1, 0);
675 TESTINST2("bfc r0, #20, #11", 0xFFFFFFFF, r0, r1, 0);
676 TESTINST2("bfc r0, #21, #11", 0xFFFFFFFF, r0, r1, 0);
678 TESTINST2("bfc r0, #0, #32", 0xFFFFFFFF, r0, r1, 0);
679 TESTINST2("bfc r0, #1, #31", 0xFFFFFFFF, r0, r1, 0);
681 TESTINST2("bfc r0, #29, #3", 0xFFFFFFFF, r0, r1, 0);
682 TESTINST2("bfc r0, #30, #2", 0xFFFFFFFF, r0, r1, 0);
683 TESTINST2("bfc r0, #31, #1", 0xFFFFFFFF, r0, r1, 0);
688 TESTINST2("sbfx r0, r1, #0, #1", 0x00000000, r0, r1, 0);
689 TESTINST2("sbfx r0, r1, #0, #1", 0x00000001, r0, r1, 0);
690 TESTINST2("sbfx r0, r1, #1, #1", 0x00000000, r0, r1, 0);
691 TESTINST2("sbfx r0, r1, #1, #1", 0x00000001, r0, r1, 0);
692 TESTINST2("sbfx r0, r1, #1, #1", 0x00000002, r0, r1, 0);
693 TESTINST2("sbfx r0, r1, #1, #1", 0x00000003, r0, r1, 0);
695 TESTINST2("sbfx r0, r1, #0, #2", 0x00000000, r0, r1, 0);
696 TESTINST2("sbfx r0, r1, #0, #2", 0x00000001, r0, r1, 0);
697 TESTINST2("sbfx r0, r1, #1, #2", 0x00000000, r0, r1, 0);
698 TESTINST2("sbfx r0, r1, #1, #2", 0x00000001, r0, r1, 0);
699 TESTINST2("sbfx r0, r1, #1, #2", 0x00000002, r0, r1, 0);
700 TESTINST2("sbfx r0, r1, #1, #2", 0x00000003, r0, r1, 0);
702 TESTINST2("sbfx r0, r1, #0, #11", 0xAAAAAAAA, r0, r1, 0);
703 TESTINST2("sbfx r0, r1, #1, #11", 0xAAAAAAAA, r0, r1, 0);
704 TESTINST2("sbfx r0, r1, #2, #11", 0xAAAAAAAA, r0, r1, 0);
706 TESTINST2("sbfx r0, r1, #2, #11", 0xAAAAAAAA, r0, r1, 0);
708 TESTINST2("sbfx r0, r1, #31, #1", 0xAAAAAAAA, r0, r1, 0);
709 TESTINST2("sbfx r0, r1, #30, #2", 0xAAAAAAAA, r0, r1, 0);
714 TESTINST2("ubfx r0, r1, #0, #1", 0x00000000, r0, r1, 0);
715 TESTINST2("ubfx r0, r1, #0, #1", 0x00000001, r0, r1, 0);
716 TESTINST2
717 TESTINST2("ubfx r0, r1, #1, #1", 0x00000001, r0, r1, 0);
718 TESTINST2("ubfx r0, r1, #1, #1", 0x00000002, r0, r1, 0);
719 TESTINST2("ubfx r0, r1, #1, #1", 0x00000003, r0, r1, 0);
721 TESTINST2("ubfx r0, r1, #0, #2", 0x00000000, r0, r1, 0);
722 TESTINST2("ubfx r0, r1, #0, #2", 0x00000001, r0, r1, 0);
723 TESTINST2("ubfx r0, r1, #1, #2", 0x00000000, r0, r1, 0);
724 TESTINST2("ubfx r0, r1, #1, #2", 0x00000001, r0, r1, 0);
725 TESTINST2("ubfx r0, r1, #1, #2", 0x00000002, r0, r1, 0);
726 TESTINST2("ubfx r0, r1, #1, #2", 0x00000003, r0, r1, 0);
728 TESTINST2("ubfx r0, r1, #0, #11", 0xAAAAAAAA, r0, r1, 0);
729 TESTINST2("ubfx r0, r1, #1, #11", 0xAAAAAAAA, r0, r1, 0);
730 TESTINST2("ubfx r0, r1, #2, #11", 0xAAAAAAAA, r0, r1, 0);
732 TESTINST2("ubfx r0, r1, #2, #11", 0xAAAAAAAA, r0, r1, 0);
734 TESTINST2("ubfx r0, r1, #31, #1", 0xAAAAAAAA, r0, r1, 0);
735 TESTINST2("ubfx r0, r1, #30, #2", 0xAAAAAAAA, r0, r1, 0);
849 TESTINST2("rbit r0, r1", 0x00000000, r0, r1, 0);
850 TESTINST2("rbit r0, r1", 0xFFFFFFFF, r0, r1, 0);
851 TESTINST2("rbit r0, r1", 0x80000000, r0, r1, 0);
852 TESTINST2("rbit r0, r1", 0x00000001, r0, r1, 0);
853 TESTINST2("rbit r0, r1", 0x31415927, r0, r1, 0);
854 TESTINST2("rbit r0, r1", 0x14141562, r0, r1, 0);
855 TESTINST2("rbit r0, r1", 0xabe8391f, r0, r1, 0);
856 TESTINST2("rbit r0, r1", 0x9028aa80, r0, r1, 0);
857 TESTINST2("rbit r0, r1", 0xead1fc6d, r0, r1, 0);
858 TESTINST2("rbit r0, r1", 0x35c98c55, r0, r1, 0);
859 TESTINST2("rbit r0, r1", 0x534af1eb, r0, r1, 0);
860 TESTINST2("rbit r0, r1", 0x45511b08, r0, r1, 0);
861 TESTINST2("rbit r0, r1", 0x90077f71, r0, r1, 0);
862 TESTINST2("rbit r0, r1", 0xde8ca84b, r0, r1, 0);
863 TESTINST2("rbit r0, r1", 0xe37a0dda, r0, r1, 0);
864 TESTINST2("rbit r0, r1", 0xe5b83d4b, r0, r1, 0);
865 TESTINST2("rbit r0, r1", 0xbb6d14ec, r0, r1, 0);
866 TESTINST2("rbit r0, r1", 0x68983cc9, r0, r1, 0);
869 TESTINST2("rev r0, r1", 0x00000000, r0, r1, 0);
870 TESTINST2("rev r0, r1", 0xFFFFFFFF, r0, r1, 0);
871 TESTINST2("rev r0, r1", 0x80000000, r0, r1, 0);
872 TESTINST2("rev r0, r1", 0x00000001, r0, r1, 0);
873 TESTINST2("rev r0, r1", 0x31415927, r0, r1, 0);
874 TESTINST2("rev r0, r1", 0x14141562, r0, r1, 0);
875 TESTINST2("rev r0, r1", 0xabe8391f, r0, r1, 0);
876 TESTINST2("rev r0, r1", 0x9028aa80, r0, r1, 0);
877 TESTINST2("rev r0, r1", 0xead1fc6d, r0, r1, 0);
878 TESTINST2("rev r0, r1", 0x35c98c55, r0, r1, 0);
879 TESTINST2("rev r0, r1", 0x534af1eb, r0, r1, 0);
880 TESTINST2("rev r0, r1", 0x45511b08, r0, r1, 0);
881 TESTINST2("rev r0, r1", 0x90077f71, r0, r1, 0);
882 TESTINST2("rev r0, r1", 0xde8ca84b, r0, r1, 0);
883 TESTINST2("rev r0, r1", 0xe37a0dda, r0, r1, 0);
884 TESTINST2("rev r0, r1", 0xe5b83d4b, r0, r1, 0);
885 TESTINST2("rev r0, r1", 0xbb6d14ec, r0, r1, 0);
886 TESTINST2("rev r0, r1", 0x68983cc9, r0, r1, 0);
889 TESTINST2("rev16 r0, r1", 0x00000000, r0, r1, 0);
890 TESTINST2("rev16 r0, r1", 0xFFFFFFFF, r0, r1, 0);
891 TESTINST2("rev16 r0, r1", 0x80000000, r0, r1, 0);
892 TESTINST2("rev16 r0, r1", 0x00000001, r0, r1, 0);
893 TESTINST2("rev16 r0, r1", 0x31415927, r0, r1, 0);
894 TESTINST2("rev16 r0, r1", 0x14141562, r0, r1, 0);
895 TESTINST2("rev16 r0, r1", 0xabe8391f, r0, r1, 0);
896 TESTINST2("rev16 r0, r1", 0x9028aa80, r0, r1, 0);
897 TESTINST2("rev16 r0, r1", 0xead1fc6d, r0, r1, 0);
898 TESTINST2("rev16 r0, r1", 0x35c98c55, r0, r1, 0);
899 TESTINST2("rev16 r0, r1", 0x534af1eb, r0, r1, 0);
900 TESTINST2("rev16 r0, r1", 0x45511b08, r0, r1, 0);
901 TESTINST2("rev16 r0, r1", 0x90077f71, r0, r1, 0);
902 TESTINST2("rev16 r0, r1", 0xde8ca84b, r0, r1, 0);
903 TESTINST2("rev16 r0, r1", 0xe37a0dda, r0, r1, 0);
904 TESTINST2("rev16 r0, r1", 0xe5b83d4b, r0, r1, 0);
905 TESTINST2("rev16 r0, r1", 0xbb6d14ec, r0, r1, 0);
906 TESTINST2("rev16 r0, r1", 0x68983cc9, r0, r1, 0);