Index: test/cctest/compiler/test-run-machops.cc |
diff --git a/test/cctest/compiler/test-run-machops.cc b/test/cctest/compiler/test-run-machops.cc |
index a8031a257079eb8c10c14ba3c54b9c5ff5d65c7c..dfa763c74fe056af13d89c8ef81d5b0b9959fd9c 100644 |
--- a/test/cctest/compiler/test-run-machops.cc |
+++ b/test/cctest/compiler/test-run-machops.cc |
@@ -1709,7 +1709,6 @@ TEST(RunInt32SubP) { |
} |
} |
- |
TEST(RunInt32SubImm) { |
{ |
FOR_UINT32_INPUTS(i) { |
@@ -1733,6 +1732,11 @@ TEST(RunInt32SubImm) { |
} |
} |
+TEST(RunInt32SubImm2) { |
+ BufferedRawMachineAssemblerTester<int32_t> r; |
+ r.Return(r.Int32Sub(r.Int32Constant(-1), r.Int32Constant(0))); |
+ CHECK_EQ(-1, r.Call()); |
+} |
TEST(RunInt32SubAndWord32SarP) { |
{ |