1/* 2 * Copyright (c) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16CONDCODE(EQ, 0x0) /* equal */ 17CONDCODE(NE, 0x1) /* not equal */ 18CONDCODE(CS, 0x2) /* carry set (== HS) */ 19CONDCODE(HS, 0x2) /* unsigned higher or same (== CS) */ 20CONDCODE(CC, 0x3) /* carry clear (== LO) */ 21CONDCODE(LO, 0x3) /* Unsigned lower (== CC) */ 22CONDCODE(MI, 0x4) /* Minus or negative result */ 23CONDCODE(PL, 0x5) /* positive or zero result */ 24CONDCODE(VS, 0x6) /* overflow */ 25CONDCODE(VC, 0x7) /* no overflow */ 26CONDCODE(HI, 0x8) /* unsigned higher */ 27CONDCODE(LS, 0x9) /* unsigned lower or same */ 28CONDCODE(GE, 0xa) /* signed greater than or equal */ 29CONDCODE(LT, 0xb) /* signed less than */ 30CONDCODE(GT, 0xc) /* signed greater than */ 31CONDCODE(LE, 0xd) /* signed less than or equal */ 32CONDCODE(AL, 0xe) /* always, this is the default. usually omitted. */ 33