; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s --mtriple=wasm32-unknown-unknown | FileCheck %s
-%i32_cell = type ptr addrspace(1)
-%i64_cell = type ptr addrspace(1)
-%f32_cell = type ptr addrspace(1)
-%f64_cell = type ptr addrspace(1)
+%alloca_cell = type ptr addrspace(1)
; We have a set of tests in which we set a local and then reload the
; local. If the load immediately follows the set, the DAG combiner will
; CHECK-NEXT: local.get 1
; CHECK-NEXT: # fallthrough-return
%retval = alloca i32, addrspace(1)
- store i32 %arg, %i32_cell %retval
+ store i32 %arg, %alloca_cell %retval
call void @inhibit_store_to_load_forwarding()
- %reloaded = load i32, %i32_cell %retval
+ %reloaded = load i32, %alloca_cell %retval
ret i32 %reloaded
}
; CHECK-NEXT: local.get 1
; CHECK-NEXT: # fallthrough-return
%retval = alloca i64, addrspace(1)
- store i64 %arg, %i64_cell %retval
+ store i64 %arg, %alloca_cell %retval
call void @inhibit_store_to_load_forwarding()
- %reloaded = load i64, %i64_cell %retval
+ %reloaded = load i64, %alloca_cell %retval
; See note in ir_local_i32.
ret i64 %reloaded
}
; CHECK-NEXT: local.get 1
; CHECK-NEXT: # fallthrough-return
%retval = alloca float, addrspace(1)
- store float %arg, %f32_cell %retval
+ store float %arg, %alloca_cell %retval
call void @inhibit_store_to_load_forwarding()
- %reloaded = load float, %f32_cell %retval
+ %reloaded = load float, %alloca_cell %retval
ret float %reloaded
}
; CHECK-NEXT: local.get 1
; CHECK-NEXT: # fallthrough-return
%retval = alloca double, addrspace(1)
- store double %arg, %f64_cell %retval
+ store double %arg, %alloca_cell %retval
call void @inhibit_store_to_load_forwarding()
- %reloaded = load double, %f64_cell %retval
+ %reloaded = load double, %alloca_cell %retval
ret double %reloaded
}