microop.cc (5138:069bbeae1ef8) | microop.cc (5570:13592d41f290) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 84 unchanged lines hidden (view full) --- 93 return ccflags.cf | ccflags.zf; 94 case ConditionTests::SF: 95 return ccflags.sf; 96 case ConditionTests::PF: 97 return ccflags.pf; 98 case ConditionTests::SxOF: 99 return ccflags.sf ^ ccflags.of; 100 case ConditionTests::SxOvZF: | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 84 unchanged lines hidden (view full) --- 93 return ccflags.cf | ccflags.zf; 94 case ConditionTests::SF: 95 return ccflags.sf; 96 case ConditionTests::PF: 97 return ccflags.pf; 98 case ConditionTests::SxOF: 99 return ccflags.sf ^ ccflags.of; 100 case ConditionTests::SxOvZF: |
101 return ccflags.sf ^ ccflags.of | ccflags.zf; | 101 return (ccflags.sf ^ ccflags.of) | ccflags.zf; |
102 case ConditionTests::False: 103 return false; 104 case ConditionTests::NotECF: 105 return !ccflags.ecf; 106 case ConditionTests::NotEZF: 107 return !ccflags.ezf; 108 case ConditionTests::NotSZnZF: 109 return !ccflags.ezf & ccflags.zf; --- 16 unchanged lines hidden (view full) --- 126 return !(ccflags.cf | ccflags.zf); 127 case ConditionTests::NotSF: 128 return !ccflags.sf; 129 case ConditionTests::NotPF: 130 return !ccflags.pf; 131 case ConditionTests::NotSxOF: 132 return !(ccflags.sf ^ ccflags.of); 133 case ConditionTests::NotSxOvZF: | 102 case ConditionTests::False: 103 return false; 104 case ConditionTests::NotECF: 105 return !ccflags.ecf; 106 case ConditionTests::NotEZF: 107 return !ccflags.ezf; 108 case ConditionTests::NotSZnZF: 109 return !ccflags.ezf & ccflags.zf; --- 16 unchanged lines hidden (view full) --- 126 return !(ccflags.cf | ccflags.zf); 127 case ConditionTests::NotSF: 128 return !ccflags.sf; 129 case ConditionTests::NotPF: 130 return !ccflags.pf; 131 case ConditionTests::NotSxOF: 132 return !(ccflags.sf ^ ccflags.of); 133 case ConditionTests::NotSxOvZF: |
134 return !(ccflags.sf ^ ccflags.of | ccflags.zf); | 134 return !((ccflags.sf ^ ccflags.of) | ccflags.zf); |
135 } 136 panic("Unknown condition: %d\n", condition); 137 return true; 138 } 139} | 135 } 136 panic("Unknown condition: %d\n", condition); 137 return true; 138 } 139} |