From 20b8ed2c2b107e037dabe879fb85d3c0734e3004 Mon Sep 17 00:00:00 2001 From: Cameron McInally Date: Mon, 14 Oct 2019 15:35:01 +0000 Subject: [IRBuilder] Update IRBuilder::CreateFNeg(...) to return a UnaryOperator Reapply r374240 with fix for Ocaml test, namely Bindings/OCaml/core.ml. Differential Revision: https://reviews.llvm.org/D61675 llvm-svn: 374782 --- clang/test/CodeGen/fp16-ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/CodeGen/fp16-ops.c') diff --git a/clang/test/CodeGen/fp16-ops.c b/clang/test/CodeGen/fp16-ops.c index f2ed667341b..f74552b8592 100644 --- a/clang/test/CodeGen/fp16-ops.c +++ b/clang/test/CodeGen/fp16-ops.c @@ -37,9 +37,9 @@ void foo(void) { // NATIVE-HALF: fcmp une half test = (!h1); // CHECK: [[F16TOF32]] - // CHECK: fsub float + // CHECK: fneg float // NOTNATIVE: [[F32TOF16]] - // NATIVE-HALF: fsub half + // NATIVE-HALF: fneg half h1 = -h1; // CHECK: [[F16TOF32]] // CHECK: [[F32TOF16]] -- cgit v1.2.3