@@ -113,10 +113,11 @@ TEST_P(MCPlusBuilderTester, AArch64_CmpJE) {
113113 BinaryFunction *BF = BC->createInjectedBinaryFunction (" BF" , true );
114114 std::unique_ptr<BinaryBasicBlock> BB = BF->createBasicBlock ();
115115
116- InstructionListType Instrs = BC->MIB ->createCmpJE (AArch64::X0, 2 , BB->getLabel (), BC->Ctx .get ());
116+ InstructionListType Instrs =
117+ BC->MIB ->createCmpJE (AArch64::X0, 2 , BB->getLabel (), BC->Ctx .get ());
117118 BB->addInstructions (Instrs.begin (), Instrs.end ());
118119 BB->addSuccessor (BB.get ());
119-
120+
120121 auto II = BB->begin ();
121122 ASSERT_EQ (II->getOpcode (), AArch64::SUBSXri);
122123 ASSERT_EQ (II->getOperand (0 ).getReg (), AArch64::XZR);
@@ -126,7 +127,7 @@ TEST_P(MCPlusBuilderTester, AArch64_CmpJE) {
126127 II++;
127128 ASSERT_EQ (II->getOpcode (), AArch64::Bcc);
128129 ASSERT_EQ (II->getOperand (0 ).getImm (), AArch64CC::EQ);
129- const MCSymbol *Label = BC->MIB ->getTargetSymbol (*II,1 );
130+ const MCSymbol *Label = BC->MIB ->getTargetSymbol (*II, 1 );
130131 ASSERT_EQ (Label, BB->getLabel ());
131132}
132133
@@ -135,11 +136,12 @@ TEST_P(MCPlusBuilderTester, AArch64_CmpJNE) {
135136 GTEST_SKIP ();
136137 BinaryFunction *BF = BC->createInjectedBinaryFunction (" BF" , true );
137138 std::unique_ptr<BinaryBasicBlock> BB = BF->createBasicBlock ();
138-
139- InstructionListType Instrs = BC->MIB ->createCmpJNE (AArch64::X0, 2 , BB->getLabel (), BC->Ctx .get ());
139+
140+ InstructionListType Instrs =
141+ BC->MIB ->createCmpJNE (AArch64::X0, 2 , BB->getLabel (), BC->Ctx .get ());
140142 BB->addInstructions (Instrs.begin (), Instrs.end ());
141143 BB->addSuccessor (BB.get ());
142-
144+
143145 auto II = BB->begin ();
144146 ASSERT_EQ (II->getOpcode (), AArch64::SUBSXri);
145147 ASSERT_EQ (II->getOperand (0 ).getReg (), AArch64::XZR);
@@ -149,7 +151,7 @@ TEST_P(MCPlusBuilderTester, AArch64_CmpJNE) {
149151 II++;
150152 ASSERT_EQ (II->getOpcode (), AArch64::Bcc);
151153 ASSERT_EQ (II->getOperand (0 ).getImm (), AArch64CC::NE);
152- const MCSymbol *Label = BC->MIB ->getTargetSymbol (*II,1 );
154+ const MCSymbol *Label = BC->MIB ->getTargetSymbol (*II, 1 );
153155 ASSERT_EQ (Label, BB->getLabel ());
154156}
155157
@@ -195,7 +197,8 @@ TEST_P(MCPlusBuilderTester, X86_CmpJE) {
195197 BinaryFunction *BF = BC->createInjectedBinaryFunction (" BF" , true );
196198 std::unique_ptr<BinaryBasicBlock> BB = BF->createBasicBlock ();
197199
198- InstructionListType Instrs = BC->MIB ->createCmpJE (X86::EAX, 2 , BB->getLabel (), BC->Ctx .get ());
200+ InstructionListType Instrs =
201+ BC->MIB ->createCmpJE (X86::EAX, 2 , BB->getLabel (), BC->Ctx .get ());
199202 BB->addInstructions (Instrs.begin (), Instrs.end ());
200203 BB->addSuccessor (BB.get ());
201204
@@ -205,7 +208,7 @@ TEST_P(MCPlusBuilderTester, X86_CmpJE) {
205208 ASSERT_EQ (II->getOperand (1 ).getImm (), 2 );
206209 II++;
207210 ASSERT_EQ (II->getOpcode (), X86::JCC_1);
208- const MCSymbol *Label = BC->MIB ->getTargetSymbol (*II,0 );
211+ const MCSymbol *Label = BC->MIB ->getTargetSymbol (*II, 0 );
209212 ASSERT_EQ (Label, BB->getLabel ());
210213 ASSERT_EQ (II->getOperand (1 ).getImm (), X86::COND_E);
211214}
@@ -216,7 +219,8 @@ TEST_P(MCPlusBuilderTester, X86_CmpJNE) {
216219 BinaryFunction *BF = BC->createInjectedBinaryFunction (" BF" , true );
217220 std::unique_ptr<BinaryBasicBlock> BB = BF->createBasicBlock ();
218221
219- InstructionListType Instrs = BC->MIB ->createCmpJNE (X86::EAX, 2 , BB->getLabel (), BC->Ctx .get ());
222+ InstructionListType Instrs =
223+ BC->MIB ->createCmpJNE (X86::EAX, 2 , BB->getLabel (), BC->Ctx .get ());
220224 BB->addInstructions (Instrs.begin (), Instrs.end ());
221225 BB->addSuccessor (BB.get ());
222226
@@ -226,7 +230,7 @@ TEST_P(MCPlusBuilderTester, X86_CmpJNE) {
226230 ASSERT_EQ (II->getOperand (1 ).getImm (), 2 );
227231 II++;
228232 ASSERT_EQ (II->getOpcode (), X86::JCC_1);
229- const MCSymbol *Label = BC->MIB ->getTargetSymbol (*II,0 );
233+ const MCSymbol *Label = BC->MIB ->getTargetSymbol (*II, 0 );
230234 ASSERT_EQ (Label, BB->getLabel ());
231235 ASSERT_EQ (II->getOperand (1 ).getImm (), X86::COND_NE);
232236}
0 commit comments