[WebAssembly] Fix handling of COPY instructions in WebAssemblyRegStackify.
[oota-llvm.git] / test / CodeGen / WebAssembly / fast-isel.ll
1 ; RUN: llc < %s -asm-verbose=false \
2 ; RUN:   -fast-isel -fast-isel-abort=1 -verify-machineinstrs \
3 ; RUN:   | FileCheck %s
4
5 target datalayout = "e-p:32:32-i64:64-n32:64-S128"
6 target triple = "wasm32-unknown-unknown"
7
8 ; This tests very minimal fast-isel functionality.
9
10 ; CHECK-LABEL: immediate_f32:
11 ; CHECK: f32.const $push{{[0-9]+}}=, 0x1.4p1{{$}}
12 define float @immediate_f32() {
13   ret float 2.5
14 }
15
16 ; CHECK-LABEL: immediate_f64:
17 ; CHECK: f64.const $push{{[0-9]+}}=, 0x1.4p1{{$}}
18 define double @immediate_f64() {
19   ret double 2.5
20 }