Changeset 3820 in CLRX
 Timestamp:
 Feb 18, 2018, 6:13:28 AM (14 months ago)
 Location:
 CLRadeonExtender/trunk
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

CLRadeonExtender/trunk/amdasm/AsmExpression.cpp
r3817 r3820 644 644 { } // keep old value 645 645 else if (!norel1  !norel2) 646 ASMX_FAILED_BY_ERROR(sourcePos, 647 "Binary AND is not allowed for any relative value")646 ASMX_FAILED_BY_ERROR(sourcePos, "Binary AND is not allowed " 647 "for any relative value except special cases") 648 648 else 649 649 value = value2 & value; … … 667 667 { } // keep old value 668 668 else if (!norel1  !norel2) 669 ASMX_FAILED_BY_ERROR(sourcePos, 670 "Binary OR is not allowed for any relative value")669 ASMX_FAILED_BY_ERROR(sourcePos, "Binary OR is not allowed " 670 "for any relative value except special cases") 671 671 else 672 672 value = value2  value; … … 685 685 { } // keep old value 686 686 else if (!norel1  !norel2) 687 ASMX_FAILED_BY_ERROR(sourcePos, 688 "Binary XOR is not allowed for any relative value")687 ASMX_FAILED_BY_ERROR(sourcePos, "Binary XOR is not allowed " 688 "for any relative value except special cases") 689 689 else 690 690 value = value2 ^ value; … … 713 713 } 714 714 else if (!norel1  !norel2) 715 ASMX_FAILED_BY_ERROR(sourcePos, 716 "Binary ORNOT is not allowed for any relative value")715 ASMX_FAILED_BY_ERROR(sourcePos, "Binary ORNOT is not allowed " 716 "for any relative value except special cases") 717 717 else 718 718 value = value2  ~value; … … 776 776 } 777 777 else if (!norel1  !norel2) 778 ASMX_FAILED_BY_ERROR(sourcePos, 779 "Logical AND is not allowed for any relative value")778 ASMX_FAILED_BY_ERROR(sourcePos, "Logical AND is not allowed " 779 "for any relative value except special cases") 780 780 else 781 781 value = value2 && value; … … 792 792 } 793 793 else if (!CHKSREL(relatives)  !CHKSREL(relatives2)) 794 ASMX_FAILED_BY_ERROR(sourcePos, 795 "Logical OR is not allowed for any relative value")794 ASMX_FAILED_BY_ERROR(sourcePos, "Logical OR is not allowed " 795 "for any relative value except special cases") 796 796 else 797 797 value = value2  value; 
CLRadeonExtender/trunk/tests/amdasm/AsmBasicsCases2.cpp
r3818 r3820 590 590 test.s:22:18: Error: Division is not allowed for any relative value 591 591 test.s:23:18: Error: Modulo is not allowed for any relative value 592 test.s:24:18: Error: Binary OR is not allowed for any relative value 593 test.s:25:18: Error: Binary AND is not allowed for any relative value 594 test.s:26:18: Error: Binary XOR is not allowed for any relative value 595 test.s:27:18: Error: Logical AND is not allowed for any relative value 596 test.s:28:18: Error: Logical OR is not allowed for any relative value 597 test.s:29:18: Error: Binary ORNOT is not allowed for any relative value 592 test.s:24:18: Error: Binary OR is not allowed for any relative value except special cases 593 test.s:25:18: Error: Binary AND is not allowed for any relative value except special cases 594 test.s:26:18: Error: Binary XOR is not allowed for any relative value except special cases 595 test.s:27:18: Error: Logical AND is not allowed for any relative value except special cases 596 test.s:28:18: Error: Logical OR is not allowed for any relative value except special cases 597 test.s:29:18: Error: Binary ORNOT is not allowed for any relative value except special cases 598 598 test.s:30:18: Error: For comparisons two values must have this same relatives! 599 599 test.s:31:18: Error: For comparisons two values must have this same relatives! … … 606 606 test.s:38:18: Error: For comparisons two values must have this same relatives! 607 607 test.s:39:18: Error: For comparisons two values must have this same relatives! 608 test.s:40:18: Error: Binary ORNOT is not allowed for any relative value 609 test.s:41:18: Error: Binary OR is not allowed for any relative value 610 test.s:42:18: Error: Binary AND is not allowed for any relative value 611 test.s:43:18: Error: Binary XOR is not allowed for any relative value 612 test.s:44:18: Error: Logical AND is not allowed for any relative value 613 test.s:45:18: Error: Logical OR is not allowed for any relative value 608 test.s:40:18: Error: Binary ORNOT is not allowed for any relative value except special cases 609 test.s:41:18: Error: Binary OR is not allowed for any relative value except special cases 610 test.s:42:18: Error: Binary AND is not allowed for any relative value except special cases 611 test.s:43:18: Error: Binary XOR is not allowed for any relative value except special cases 612 test.s:44:18: Error: Logical AND is not allowed for any relative value except special cases 613 test.s:45:18: Error: Logical OR is not allowed for any relative value except special cases 614 614 test.s:46:18: Error: Choice is not allowed for first relative value 615 615 )ffDXD", ""
Note: See TracChangeset
for help on using the changeset viewer.