1 ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK
3 ; CHECK-DAG: %[[#Int8Ty:]] = OpTypeInt 8 0
4 ; CHECK-DAG: %[[#PtrTy:]] = OpTypePointer Function %[[#Int8Ty]]
5 ; CHECK-DAG: %[[#Int64Ty:]] = OpTypeInt 64 0
6 ; CHECK-DAG: %[[#FTy:]] = OpTypeFunction %[[#Int64Ty]] %[[#PtrTy]]
7 ; CHECK-DAG: %[[#Int32Ty:]] = OpTypeInt 32 0
8 ; CHECK-DAG: %[[#Const:]] = OpConstant %[[#Int32Ty]] 0
9 ; CHECK: OpFunction %[[#Int64Ty]] None %[[#FTy]]
10 ; CHECK: %[[#Parm:]] = OpFunctionParameter %[[#PtrTy]]
11 ; CHECK: OpStore %[[#Parm]] %[[#Const]] Aligned 4
12 ; CHECK: %[[#Res:]] = OpLoad %[[#Int64Ty]] %[[#Parm]] Aligned 8
13 ; CHECK: OpReturnValue %[[#Res]]
15 define i64 @test(ptr %p) {