| 1 |
; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s |
| 2 |
|
| 3 |
define spir_func float @Test(float %x, float %y) { |
| 4 |
entry: |
| 5 |
%0 = call float @llvm.maxnum.f32(float %x, float %y) |
| 6 |
ret float %0 |
| 7 |
} |
| 8 |
|
| 9 |
; CHECK: OpFunction |
| 10 |
; CHECK: %[[#x:]] = OpFunctionParameter %[[#]] |
| 11 |
; CHECK: %[[#y:]] = OpFunctionParameter %[[#]] |
| 12 |
; CHECK: %[[#res:]] = OpExtInst %[[#]] %[[#]] fmax %[[#x]] %[[#y]] |
| 13 |
; CHECK: OpReturnValue %[[#res]] |
| 14 |
|
| 15 |
declare float @llvm.maxnum.f32(float, float) |