diff options
author | Cameron McInally <cameron.mcinally@nyu.edu> | 2019-05-05 16:07:09 +0000 |
---|---|---|
committer | Cameron McInally <cameron.mcinally@nyu.edu> | 2019-05-05 16:07:09 +0000 |
commit | 1d0c845d9dce577c2ef14cd7d5fcf0b9c17f9ed2 (patch) | |
tree | bc2a42daa117355c7d3a43a82ce69c34ea357883 /llvm/unittests/IR/ConstantsTest.cpp | |
parent | 70ee2def906e928624f59611c3de732fe121b8a4 (diff) | |
download | bcm5719-llvm-1d0c845d9dce577c2ef14cd7d5fcf0b9c17f9ed2.tar.gz bcm5719-llvm-1d0c845d9dce577c2ef14cd7d5fcf0b9c17f9ed2.zip |
Add FNeg IR constant folding support
llvm-svn: 359982
Diffstat (limited to 'llvm/unittests/IR/ConstantsTest.cpp')
-rw-r--r-- | llvm/unittests/IR/ConstantsTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/IR/ConstantsTest.cpp b/llvm/unittests/IR/ConstantsTest.cpp index a07862213d2..6c3497a6c84 100644 --- a/llvm/unittests/IR/ConstantsTest.cpp +++ b/llvm/unittests/IR/ConstantsTest.cpp @@ -229,7 +229,7 @@ TEST(ConstantsTest, AsInstructionsTest) { #define P6STR "bitcast (i32 ptrtoint (i32** @dummy2 to i32) to <2 x i16>)" CHECK(ConstantExpr::getNeg(P0), "sub i32 0, " P0STR); - CHECK(ConstantExpr::getFNeg(P1), "fsub float -0.000000e+00, " P1STR); + CHECK(ConstantExpr::getFNeg(P1), "fneg float " P1STR); CHECK(ConstantExpr::getNot(P0), "xor i32 " P0STR ", -1"); CHECK(ConstantExpr::getAdd(P0, P0), "add i32 " P0STR ", " P0STR); CHECK(ConstantExpr::getAdd(P0, P0, false, true), "add nsw i32 " P0STR ", " |