summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips
diff options
context:
space:
mode:
authorRoman Tereshin <rtereshin@apple.com>2019-10-14 22:01:58 +0000
committerRoman Tereshin <rtereshin@apple.com>2019-10-14 22:01:58 +0000
commit044297ccbfcfb4339c56d65afaf877b83486f17a (patch)
treeb367fe440795d1495fb06fd759970c7c8d999bb8 /llvm/test/CodeGen/Mips
parent1f40f15d54aac06421448b6de131231d2d78bc75 (diff)
downloadbcm5719-llvm-044297ccbfcfb4339c56d65afaf877b83486f17a.tar.gz
bcm5719-llvm-044297ccbfcfb4339c56d65afaf877b83486f17a.zip
[update_mir_test_checks] Handle MI flags properly
previously we would generate literal check lines w/ no reg-exps for vregs as MI flags (nsw, ninf, etc.) won't be recognized as a part of MI. Fixing that. Includes updating the MIR tests that suffered from the problem. Reviewed By: bogner Differential Revision: https://reviews.llvm.org/D68905 llvm-svn: 374829
Diffstat (limited to 'llvm/test/CodeGen/Mips')
-rw-r--r--llvm/test/CodeGen/Mips/GlobalISel/legalizer/dyn_stackalloc.mir4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/Mips/GlobalISel/legalizer/dyn_stackalloc.mir b/llvm/test/CodeGen/Mips/GlobalISel/legalizer/dyn_stackalloc.mir
index 50776623965..6724428dfaa 100644
--- a/llvm/test/CodeGen/Mips/GlobalISel/legalizer/dyn_stackalloc.mir
+++ b/llvm/test/CodeGen/Mips/GlobalISel/legalizer/dyn_stackalloc.mir
@@ -36,9 +36,9 @@ body: |
; MIPS32: [[ADD:%[0-9]+]]:_(s32) = G_ADD [[COPY1]], [[C]]
; MIPS32: [[MUL:%[0-9]+]]:_(s32) = G_MUL [[ADD]], [[C]]
; MIPS32: [[C2:%[0-9]+]]:_(s32) = G_CONSTANT i32 7
- ; MIPS32: %8:_(s32) = nuw G_ADD [[MUL]], [[C2]]
+ ; MIPS32: [[ADD1:%[0-9]+]]:_(s32) = nuw G_ADD [[MUL]], [[C2]]
; MIPS32: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 -8
- ; MIPS32: [[AND:%[0-9]+]]:_(s32) = G_AND %8, [[C3]]
+ ; MIPS32: [[AND:%[0-9]+]]:_(s32) = G_AND [[ADD1]], [[C3]]
; MIPS32: [[COPY2:%[0-9]+]]:_(p0) = COPY $sp
; MIPS32: [[PTRTOINT:%[0-9]+]]:_(s32) = G_PTRTOINT [[COPY2]](p0)
; MIPS32: [[SUB:%[0-9]+]]:_(s32) = G_SUB [[PTRTOINT]], [[AND]]
OpenPOWER on IntegriCloud