File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
llvm/test/CodeGen/SPIRV/llvm-intrinsics Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -359,6 +359,23 @@ entry:
359359 ret void
360360}
361361
362+ ; CHECK: OpFunction
363+ ; CHECK: %[[#d:]] = OpFunctionParameter %[[#]]
364+ ; CHECK: %[[#fracPtr:]] = OpFunctionParameter %[[#]]
365+ ; CHECK: %[[#integralPtr:]] = OpFunctionParameter %[[#]]
366+ ; CHECK: %[[#entryBlock:]] = OpLabel
367+ ; CHECK: %[[#varPtr:]] = OpVariable %[[#]] Function
368+ ; CHECK: OpBranchConditional %[[#]] %[[#lor_lhs_falseBlock:]] %[[#if_thenBlock:]]
369+ ; CHECK: %[[#lor_lhs_falseBlock]] = OpLabel
370+ ; CHECK: OpBranchConditional %[[#]] %[[#if_endBlock:]] %[[#if_thenBlock]]
371+ ; CHECK: %[[#if_thenBlock]] = OpLabel
372+ ; CHECK: OpBranch %[[#returnBlock:]]
373+ ; CHECK: %[[#if_endBlock]] = OpLabel
374+ ; CHECK: %[[#frac:]] = OpExtInst %[[#var2]] %[[#extinst_id]] modf %[[#d]] %[[#varPtr]]
375+ ; CHECK: %[[#integral:]] = OpLoad %[[#var2]] %[[#varPtr]]
376+ ; CHECK: OpStore %[[#fracPtr]] %[[#frac]]
377+ ; CHECK: OpStore %[[#integralPtr]] %[[#integral]]
378+ ; CHECK: OpFunctionEnd
362379define dso_local void @TestModf2 (double noundef %d , ptr noundef %frac , ptr noundef %integral ) {
363380entry:
364381 %0 = load ptr , ptr %frac , align 8
You can’t perform that action at this time.
0 commit comments