Skip to content

Commit 7cbd5af

Browse files
committed
[WebAssembly] Update the test for half (NFC)
Replace the existing `f16` test with the version that is uses for other architectures (typically as `half.ll`). This still covers the conversions from the existing test, but also adds checks for most simple ops. Additionally, rename `half-precision.ll` to `fp-intrinsics.ll` to keep the name similar to this test.
1 parent 7f0e407 commit 7cbd5af

File tree

2 files changed

+650
-64
lines changed

2 files changed

+650
-64
lines changed

llvm/test/CodeGen/WebAssembly/half-precision.ll renamed to llvm/test/CodeGen/WebAssembly/f16-intrinsics.ll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
; RUN: llc < %s --mtriple=wasm32-unknown-unknown -asm-verbose=false -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers -mattr=+fp16,+simd128 | FileCheck %s
22

3+
; Tests for `llvm.wasm.*.*f16` intrinsics
4+
35
declare float @llvm.wasm.loadf32.f16(ptr)
46
declare void @llvm.wasm.storef16.f32(float, ptr)
57

0 commit comments

Comments
 (0)