1 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
3 ; CHECK-DAG: OpName %[[#VALUE:]] "value"
4 ; CHECK-DAG: OpName %[[#IDENTITY:]] "identity"
6 ; CHECK: %[[#INT:]] = OpTypeInt 32
7 ; CHECK: %[[#FN:]] = OpTypeFunction %[[#INT]] %[[#INT]]
9 ; CHECK: %[[#IDENTITY]] = OpFunction %[[#INT]] None %[[#FN]]
10 ; CHECK-NEXT: %[[#VALUE]] = OpFunctionParameter %[[#INT]]
11 ; CHECK-NEXT: {{%.+}} = OpLabel
12 ; CHECK-NEXT: OpReturnValue %[[#VALUE]]
13 ; CHECK-NEXT: OpFunctionEnd
15 define i32 @identity(i32 %value) {