mirror of
https://github.com/RPCSX/llvm.git
synced 2026-01-31 01:05:23 +01:00
Summary: Match spec format: https://github.com/WebAssembly/spec/blob/master/ml-proto/test/fac.wasm Reviewers: sunfish Subscribers: llvm-commits, jfb Differential Revision: http://reviews.llvm.org/D12307 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245986 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
503 B
LLVM
21 lines
503 B
LLVM
; RUN: llc < %s -asm-verbose=false \
|
|
; RUN: -fast-isel -fast-isel-abort=1 -verify-machineinstrs \
|
|
; RUN: | FileCheck %s
|
|
|
|
target datalayout = "e-p:32:32-i64:64-n32:64-S128"
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
; This tests very minimal fast-isel functionality.
|
|
|
|
; CHECK-LABEL: (func $immediate_f32
|
|
; CHECK: (immediate 0x1.4p1)
|
|
define float @immediate_f32() {
|
|
ret float 2.5
|
|
}
|
|
|
|
; CHECK-LABEL: (func $immediate_f64
|
|
; CHECK: (immediate 0x1.4p1)
|
|
define double @immediate_f64() {
|
|
ret double 2.5
|
|
}
|