mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
026d2d3257
Differential Revision: https://reviews.llvm.org/D95410
16 lines
458 B
LLVM
16 lines
458 B
LLVM
; RUN: llc < %s -fast-isel --mtriple=wasm64 -asm-verbose=false -wasm-keep-registers | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-p:64:64-i64:64-n32:64-S128"
|
|
target triple = "wasm64"
|
|
|
|
; Ensure fast isel also lowers function pointers to 32-bit.
|
|
|
|
; CHECK: local.get $push[[L0:[0-9]+]]=, 0
|
|
; CHECK-NEXT: i32.wrap_i64 $push[[L1:[0-9]+]]=, $pop[[L0]]
|
|
; CHECK-NEXT: call_indirect $pop[[L1]]
|
|
|
|
define hidden void @f(void ()* %g) {
|
|
call void %g()
|
|
ret void
|
|
}
|