brintos

brintos / llvm-project-archived public Read only

0
0
Text · 485 B · e9254c2 Raw
16 lines · plain
1; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s2 3define spir_func float @Test(float %x, float %y) {4entry:5  %0 = call float @llvm.maxnum.f32(float %x, float %y)6  ret float %07}8 9; CHECK: OpFunction10; CHECK: %[[#x:]] = OpFunctionParameter %[[#]]11; CHECK: %[[#y:]] = OpFunctionParameter %[[#]]12; CHECK: %[[#res:]] = OpExtInst %[[#]] %[[#]] fmax %[[#x]] %[[#y]]13; CHECK: OpReturnValue %[[#res]]14 15declare float @llvm.maxnum.f32(float, float)16