From b45829dcdf473d94f0ab2ff17f869ff9370224f7 Mon Sep 17 00:00:00 2001 From: "Luo, Yuanke" Date: Thu, 7 Jul 2022 11:42:39 +0800 Subject: [PATCH] [AArch64][GlobalISel] update the gisel test case --- llvm/test/CodeGen/AArch64/GlobalISel/select-dbg-value.mir | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/llvm/test/CodeGen/AArch64/GlobalISel/select-dbg-value.mir b/llvm/test/CodeGen/AArch64/GlobalISel/select-dbg-value.mir index 77365fe..0df73e8 100644 --- a/llvm/test/CodeGen/AArch64/GlobalISel/select-dbg-value.mir +++ b/llvm/test/CodeGen/AArch64/GlobalISel/select-dbg-value.mir @@ -43,10 +43,12 @@ body: | bb.0: liveins: $w0 ; CHECK-LABEL: name: test_dbg_value - ; CHECK: [[COPY:%[0-9]+]]:gpr32 = COPY $w0 - ; CHECK: [[ADDWrr:%[0-9]+]]:gpr32 = ADDWrr [[COPY]], [[COPY]] - ; CHECK: $w0 = COPY [[ADDWrr]] - ; CHECK: DBG_VALUE [[ADDWrr]], $noreg, !7, !DIExpression(), debug-location !9 + ; CHECK: liveins: $w0 + ; CHECK-NEXT: {{ $}} + ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr32 = COPY $w0 + ; CHECK-NEXT: [[ADDWrr:%[0-9]+]]:gpr32 = ADDWrr [[COPY]], [[COPY]] + ; CHECK-NEXT: $w0 = COPY [[ADDWrr]] + ; CHECK-NEXT: DBG_VALUE [[ADDWrr]], $noreg, !7, !DIExpression(), debug-location !9 %0:gpr(s32) = COPY $w0 %1:gpr(s32) = G_ADD %0, %0 $w0 = COPY %1(s32) @@ -61,8 +63,9 @@ body: | bb.0: liveins: $w0 ; CHECK-LABEL: name: test_dbg_value_dead - ; CHECK-NOT: COPY - ; CHECK: DBG_VALUE %0:gpr, $noreg, !7, !DIExpression(), debug-location !9 + ; CHECK: liveins: $w0 + ; CHECK-NEXT: {{ $}} + ; CHECK-NEXT: DBG_VALUE %0:gpr, $noreg, !7, !DIExpression(), debug-location !9 %0:gpr(s32) = COPY $w0 DBG_VALUE %0(s32), $noreg, !7, !DIExpression(), debug-location !9 ... -- 2.7.4