; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
; CHECK-DAG: OpName %[[#VALUE:]] "value"
; CHECK-DAG: OpName %[[#IDENTITY:]] "identity"
; CHECK: %[[#INT:]] = OpTypeInt 32
; CHECK: %[[#FN:]] = OpTypeFunction %[[#INT]] %[[#INT]]
; CHECK: %[[#IDENTITY]] = OpFunction %[[#INT]] None %[[#FN]]
; CHECK-NEXT: %[[#VALUE]] = OpFunctionParameter %[[#INT]]
; CHECK-NEXT: {{%.+}} = OpLabel
; CHECK-NEXT: OpReturnValue %[[#VALUE]]
; CHECK-NEXT: OpFunctionEnd
define i32 @identity(i32 %value) {
ret i32 %value
}