1 ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt | FileCheck %s 2 ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -fast-isel -fast-isel-abort=1 | FileCheck %s 3 4 ; Test that basic stores are assembled properly. 5 6 target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" 7 target triple = "wasm32-unknown-unknown" 8 9 ; CHECK-LABEL: sti32: 10 ; CHECK-NEXT: .param i32, i32{{$}} 11 ; CHECK-NEXT: i32.store $drop=, 0($0), $1{{$}} 12 ; CHECK-NEXT: return{{$}} 13 define void @sti32(i32 *%p, i32 %v) { 14 store i32 %v, i32* %p 15 ret void 16 } 17 18 ; CHECK-LABEL: sti64: 19 ; CHECK-NEXT: .param i32, i64{{$}} 20 ; CHECK-NEXT: i64.store $drop=, 0($0), $1{{$}} 21 ; CHECK-NEXT: return{{$}} 22 define void @sti64(i64 *%p, i64 %v) { 23 store i64 %v, i64* %p 24 ret void 25 } 26 27 ; CHECK-LABEL: stf32: 28 ; CHECK-NEXT: .param i32, f32{{$}} 29 ; CHECK-NEXT: f32.store $drop=, 0($0), $1{{$}} 30 ; CHECK-NEXT: return{{$}} 31 define void @stf32(float *%p, float %v) { 32 store float %v, float* %p 33 ret void 34 } 35 36 ; CHECK-LABEL: stf64: 37 ; CHECK-NEXT: .param i32, f64{{$}} 38 ; CHECK-NEXT: f64.store $drop=, 0($0), $1{{$}} 39 ; CHECK-NEXT: return{{$}} 40 define void @stf64(double *%p, double %v) { 41 store double %v, double* %p 42 ret void 43 } 44