Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / CodeGen / WebAssembly / fast-isel-call-indirect64.ll
blob8224c3bc4e374248117066c10b77638c5ccd932e
1 ; RUN: llc < %s -fast-isel --mtriple=wasm64 -asm-verbose=false -wasm-keep-registers | FileCheck %s
3 target triple = "wasm64"
5 ; Ensure fast isel also lowers function pointers to 32-bit.
7 ; CHECK:       local.get $push[[L0:[0-9]+]]=, 0
8 ; CHECK-NEXT:  i32.wrap_i64 $push[[L1:[0-9]+]]=, $pop[[L0]]
9 ; CHECK-NEXT:  call_indirect $pop[[L1]]
11 define hidden void @f(ptr %g) {
12   call void %g()
13   ret void