brintos

brintos / llvm-project-archived public Read only

0
0
Text · 572 B · 49cc47f Raw
14 lines · plain
1; RUN: not opt -passes=verify < %s 2>&1 | FileCheck %s2 3declare half @llvm.fptrunc.round(float, metadata)4 5define void @test_fptrunc_round_dynamic(float %a) {6; CHECK: unsupported rounding mode argument7  %res = call half @llvm.fptrunc.round(float %a, metadata !"round.dynamic")8; CHECK: unsupported rounding mode argument9  %res1 = call half @llvm.fptrunc.round(float %a, metadata !"round.test")10; CHECK: invalid value for llvm.fptrunc.round metadata operand (the operand should be a string)11  %res2 = call half @llvm.fptrunc.round(float %a, metadata i32 5)12  ret void13}14