From a28d38a6bca1726d56c9b373f4c7dc5264fc7716 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sun, 28 Jun 2020 18:35:13 +0200 Subject: [PATCH] [SimplifyCFG] Make test more robust (NFC) Avoid changing this test if blocks get merged. --- llvm/test/Transforms/SimplifyCFG/switch-dead-default.ll | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/test/Transforms/SimplifyCFG/switch-dead-default.ll b/llvm/test/Transforms/SimplifyCFG/switch-dead-default.ll index 7f713182fde7..2ce04ec85060 100644 --- a/llvm/test/Transforms/SimplifyCFG/switch-dead-default.ll +++ b/llvm/test/Transforms/SimplifyCFG/switch-dead-default.ll @@ -91,7 +91,7 @@ define void @test3(i2 %a) { ; CHECK-NEXT: call void @foo(i32 2) ; CHECK-NEXT: ret void ; CHECK: default: -; CHECK-NEXT: call void @foo(i32 0) +; CHECK-NEXT: call void @foo(i32 3) ; CHECK-NEXT: ret void ; switch i2 %a, label %default [i2 0, label %case0 @@ -108,7 +108,7 @@ case2: call void @foo(i32 2) ret void default: - call void @foo(i32 0) + call void @foo(i32 3) ret void } @@ -127,7 +127,7 @@ define void @test4(i128 %a) { ; CHECK-NEXT: call void @foo(i32 1) ; CHECK-NEXT: ret void ; CHECK: default: -; CHECK-NEXT: call void @foo(i32 0) +; CHECK-NEXT: call void @foo(i32 2) ; CHECK-NEXT: ret void ; switch i128 %a, label %default [i128 0, label %case0 @@ -140,7 +140,7 @@ case1: call void @foo(i32 1) ret void default: - call void @foo(i32 0) + call void @foo(i32 2) ret void }