Skip to content

Commit bd5eb78

Browse files
committed
Pre commit test to transform i128 to v2i64
1 parent 34b3ea3 commit bd5eb78

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
}

0 commit comments

Comments
 (0)