summaryrefslogtreecommitdiffstats
path: root/llvm/test/Verifier/llvm.fptrunc.round.ll
blob: 17ca81a77d6926722684e58ec3be229fd04716fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: not opt -verify < %s 2>&1 | FileCheck %s

declare half @llvm.fptrunc.round(float, metadata)

define void @test_fptrunc_round_dynamic(float %a) {
; CHECK: unsupported rounding mode argument
  %res = call half @llvm.fptrunc.round(float %a, metadata !"round.dynamic")
; CHECK: unsupported rounding mode argument
  %res1 = call half @llvm.fptrunc.round(float %a, metadata !"round.test")
; CHECK: invalid value for llvm.fptrunc.round metadata operand (the operand should be a string)
  %res2 = call half @llvm.fptrunc.round(float %a, metadata i32 5)
  ret void
}