File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
llvm/test/CodeGen/WebAssembly Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2
+ ; RUN: llc < %s -verify-machineinstrs -disable-wasm-fallthrough-return-opt -wasm-keep-registers -wasm-disable-explicit-locals -mattr=+simd128 | FileCheck %s
3
+ target triple = "wasm32-unknown-unknown"
4
+
5
+ define void @i128_to_v128 (ptr %ptr ) {
6
+ ; CHECK-LABEL: i128_to_v128:
7
+ ; CHECK: .functype i128_to_v128 (i32) -> ()
8
+ ; CHECK-NEXT: # %bb.0:
9
+ ; CHECK-NEXT: i64.load $push0=, 0($0)
10
+ ; CHECK-NEXT: i64.store 0($0), $pop0
11
+ ; CHECK-NEXT: i64.load $push1=, 8($0)
12
+ ; CHECK-NEXT: i64.store 8($0), $pop1
13
+ ; CHECK-NEXT: return
14
+ %2 = load i128 , ptr %ptr
15
+ store volatile i128 %2 , ptr %ptr
16
+ ret void
17
+ }
You can’t perform that action at this time.
0 commit comments