1 ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
3 ; CHECK-DAG: OpName [[VALUE:%.+]] "value"
4 ; CHECK-DAG: OpName [[IDENTITY:%.+]] "identity"
5 ; CHECK-DAG: OpName [[FOO:%.+]] "foo"
7 ; CHECK: [[INT:%.+]] = OpTypeInt 32
8 ; CHECK-DAG: [[CST:%.+]] = OpConstant [[INT]] 42
10 define i32 @identity(i32 %value) {
15 %x = call i32 @identity(i32 42)
19 ; CHECK: [[FOO]] = OpFunction [[INT]]
20 ; CHECK: [[X:%.+]] = OpFunctionCall [[INT]] [[IDENTITY]] [[CST]]
21 ; CHECK: OpReturnValue [[X]]
22 ; CHECK: OpFunctionEnd