1 ; RUN: llc -fast-isel=true -global-isel=false -O0 -mtriple=arm64_32-apple-ios %s -o - | FileCheck %s
2 ; RUN: llc -fast-isel=false -global-isel=false -O0 -mtriple=arm64_32-apple-ios %s -o - | FileCheck %s
4 define void @test_store(ptr %p) {
5 ; CHECK-LABEL: test_store:
6 ; CHECK: mov [[R1:w[0-9]+]], wzr
7 ; CHECK: str [[R1]], [x0]
13 define void @test_phi(ptr %p) {
14 ; CHECK-LABEL: test_phi:
15 ; CHECK: mov [[R1:x[0-9]+]], xzr
16 ; CHECK: str [[R1]], [sp, #8]
17 ; CHECK: b [[BB:LBB[0-9_]+]]
19 ; CHECK: ldr x0, [sp, #8]
21 ; CHECK: str w8, [x{{.*}}]
26 %tmp0 = phi ptr [ null, %bb0 ]
27 store ptr %tmp0, ptr %p