Skip to content

Commit 75bd950

Browse files
committed
Add the --verify-machineinstrs option to make sure the BuildMI calls are correct.
1 parent bcc5ae5 commit 75bd950

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5762,7 +5762,7 @@ emitPseudoVMSKCOND(MachineInstr &MI, MachineBasicBlock *BB,
57625762
Register Lo = MRI.createVirtualRegister(&LoongArch::GPRRegClass);
57635763
Register Hi = MRI.createVirtualRegister(&LoongArch::GPRRegClass);
57645764
BuildMI(*BB, MI, DL, TII->get(LoongArch::XVPICKVE2GR_WU), Lo)
5765-
.addReg(Msk, RegState::Kill)
5765+
.addReg(Msk)
57665766
.addImm(0);
57675767
BuildMI(*BB, MI, DL, TII->get(LoongArch::XVPICKVE2GR_WU), Hi)
57685768
.addReg(Msk, RegState::Kill)

llvm/test/CodeGen/LoongArch/lasx/xvmskcond.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2-
; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s
2+
; RUN: llc --mtriple=loongarch64 --mattr=+lasx --verify-machineinstrs < %s | FileCheck %s
33

44
define i32 @xmsk_eq_allzeros_i8(<32 x i8 > %a) {
55
; CHECK-LABEL: xmsk_eq_allzeros_i8:

llvm/test/CodeGen/LoongArch/lsx/vmskcond.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2-
; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s
2+
; RUN: llc --mtriple=loongarch64 --mattr=+lsx --verify-machineinstrs < %s | FileCheck %s
33

44
define i16 @vmsk_eq_allzeros_i8(<16 x i8 > %a) {
55
; CHECK-LABEL: vmsk_eq_allzeros_i8:

0 commit comments

Comments
 (0)