llvm.org GIT mirror llvm / 5379904
Add a missing def flag. *** Bad machine code: Explicit definition marked as use *** - function: test_cos - basic block: BB#0 L.entry (0x7ff2a2024fd0) - instruction: VSETLNi32 %D11, %D11<undef>, %R0, 0, pred:14, pred:%noreg, %Q5<imp-use,kill>, %Q5<imp-def> - operand 0: %D11 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162247 91177308-0d34-0410-b5e6-96231b3b80d8 Jakob Stoklund Olesen 7 years ago
2 changed file(s) with 3 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
34633463 MI->RemoveOperand(0);
34643464
34653465 MI->setDesc(get(ARM::VSETLNi32));
3466 MIB.addReg(DReg);
3467 MIB.addReg(DReg);
3466 MIB.addReg(DReg, RegState::Define);
3467 MIB.addReg(DReg, RegState::Undef);
34683468 MIB.addReg(SrcReg);
34693469 MIB.addImm(Lane);
3470
3471 MIB->getOperand(1).setIsUndef();
34723470
34733471 if (isKill)
34743472 MIB->addRegisterKilled(DstReg, TRI, true);
None ; RUN: llc < %s -march=arm -mcpu=cortex-a9 | FileCheck %s
0 ; RUN: llc < %s -march=arm -mcpu=cortex-a9 -verify-machineinstrs | FileCheck %s
11
22 @A = global <4 x float>
33