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(i8** %p) {
5 ; CHECK-LABEL: test_store:
6 ; CHECK: mov [[R1:w[0-9]+]], wzr
7 ; CHECK: str [[R1]], [x0]
9 store i8* null, i8** %p
13 define void @test_phi(i8** %p) {
14 ; CHECK-LABEL: test_phi:
15 ; CHECK: mov [[R1:x[0-9]+]], xzr
16 ; CHECK: str [[R1]], [sp]
17 ; CHECK: b [[BB:LBB[0-9_]+]]
20 ; CHECK: str w0, [x{{.*}}]
25 %tmp0 = phi i8* [ null, %bb0 ]
26 store i8* %tmp0, i8** %p