21 lines · plain
1; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV2 3define spir_kernel void @k(float %a, float %b, float %c) !spirv.ParameterDecorations !14 {4entry:5 ret void6}7 8; CHECK-SPIRV: OpDecorate %[[#PId1:]] Restrict9; CHECK-SPIRV: OpDecorate %[[#PId1]] FPRoundingMode RTP10; CHECK-SPIRV: OpDecorate %[[#PId2:]] Volatile11; CHECK-SPIRV: %[[#PId1]] = OpFunctionParameter %[[#]]12; CHECK-SPIRV: %[[#PId2]] = OpFunctionParameter %[[#]]13 14!8 = !{i32 19}15!9 = !{i32 39, i32 2}16!10 = !{i32 21}17!11 = !{!8, !9}18!12 = !{}19!13 = !{!10}20!14 = !{!11, !12, !13}21