1 ; RUN: llc -o - %s -asm-verbose=false | FileCheck %s
2 target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
3 target triple = "wasm32-unknown-unknown"
5 ; Test that stackified IMPLICIT_DEF instructions are converted into
6 ; CONST_I32 to provide an explicit push.
9 ; CHECK: i32.const $push[[L0:[0-9]+]]=, 0{{$}}
10 ; CHECK-NEXT: return $pop[[L0]]{{$}}
13 switch i1 %a, label %C [
24 br i1 %c, label %D, label %X
27 %d = icmp slt i32 0, 0
28 br i1 %d, label %G, label %F
32 br i1 %e, label %E, label %X
43 %h = phi i1 [ undef, %C ], [ false, %F ]
47 %i = phi i1 [ true, %A ], [ true, %B ], [ true, %D ], [ true, %E ], [ %h, %G ]