diff options
| author | Dan Gohman <dan433584@gmail.com> | 2015-08-24 18:44:37 +0000 |
|---|---|---|
| committer | Dan Gohman <dan433584@gmail.com> | 2015-08-24 18:44:37 +0000 |
| commit | 7b63484b997e08f98e29f9b50acab85e1a64adf3 (patch) | |
| tree | 7c6f2ac530d119397d028f7128f950785164ecfb /llvm/test | |
| parent | 896e53fae806150d7eea7f11efe3738ca924dcd0 (diff) | |
| download | bcm5719-llvm-7b63484b997e08f98e29f9b50acab85e1a64adf3.tar.gz bcm5719-llvm-7b63484b997e08f98e29f9b50acab85e1a64adf3.zip | |
[WebAssembly] Skeleton FastISel support
llvm-svn: 245860
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/WebAssembly/fast-isel.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/fast-isel.ll b/llvm/test/CodeGen/WebAssembly/fast-isel.ll new file mode 100644 index 00000000000..c4f1c2fa5e8 --- /dev/null +++ b/llvm/test/CodeGen/WebAssembly/fast-isel.ll @@ -0,0 +1,20 @@ +; 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: immediate_f32 +; CHECK: (immediate 0x1.4p1) +define float @immediate_f32() { + ret float 2.5 +} + +; CHECK-LABEL: immediate_f64 +; CHECK: (immediate 0x1.4p1) +define double @immediate_f64() { + ret double 2.5 +} |

