From 17a415a4f2d2609544b0bbb83691b568ddb5acd8 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Tue, 7 Oct 2008 17:40:46 +0000 Subject: [PATCH] Fix Opcode values of CMP and CMN git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57251 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMInstrInfo.td | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index 5265b468d87..9b8bfba1d39 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -1099,9 +1099,9 @@ def : ARMV6Pat<(or (and GPR:$src1, 0xFFFF0000), // Comparison Instructions... // -defm CMP : AI1_cmp_irs<0xA, "cmp", +defm CMP : AI1_cmp_irs<{0,1,0,1}, "cmp", BinOpFrag<(ARMcmp node:$LHS, node:$RHS)>>; -defm CMN : AI1_cmp_irs<0xB, "cmn", +defm CMN : AI1_cmp_irs<{1,1,0,1}, "cmn", BinOpFrag<(ARMcmp node:$LHS,(ineg node:$RHS))>>; // Note that TST/TEQ don't set all the same flags that CMP does! @@ -1110,9 +1110,9 @@ defm TST : AI1_cmp_irs<0x8, "tst", defm TEQ : AI1_cmp_irs<0x9, "teq", BinOpFrag<(ARMcmpNZ (xor node:$LHS, node:$RHS), 0)>>; -defm CMPnz : AI1_cmp_irs<0xA, "cmp", +defm CMPnz : AI1_cmp_irs<{0,1,0,1}, "cmp", BinOpFrag<(ARMcmpNZ node:$LHS, node:$RHS)>>; -defm CMNnz : AI1_cmp_irs<0xA, "cmn", +defm CMNnz : AI1_cmp_irs<{1,1,0,1}, "cmn", BinOpFrag<(ARMcmpNZ node:$LHS,(ineg node:$RHS))>>; def : ARMPat<(ARMcmp GPR:$src, so_imm_neg:$imm), -- 2.34.1