Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: test/cctest/test-assembler-arm.cc

Issue 1223093004: [arm] Fix missing CheckBuffer for branches. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-assembler-arm.cc
diff --git a/test/cctest/test-assembler-arm.cc b/test/cctest/test-assembler-arm.cc
index 59ebaab069270fa8626ef4f060a3aea03093685d..06b8d81be4dc4b95de817786ca749b2bb543acdd 100644
--- a/test/cctest/test-assembler-arm.cc
+++ b/test/cctest/test-assembler-arm.cc
@@ -1981,4 +1981,50 @@ TEST(ARMv8_vrintX) {
#undef CHECK_VRINT
}
}
+
+
+TEST(regress4292_b) {
+ CcTest::InitializeVM();
+ Isolate* isolate = CcTest::i_isolate();
+ HandleScope scope(isolate);
+
+ Assembler assm(isolate, NULL, 0);
+ Label end;
+ __ mov(r0, Operand(isolate->factory()->infinity_value()));
+ for (int i = 0; i < 1020; ++i) {
+ __ b(hi, &end);
+ }
+ __ bind(&end);
+}
+
+
+TEST(regress4292_bl) {
+ CcTest::InitializeVM();
+ Isolate* isolate = CcTest::i_isolate();
+ HandleScope scope(isolate);
+
+ Assembler assm(isolate, NULL, 0);
+ Label end;
+ __ mov(r0, Operand(isolate->factory()->infinity_value()));
+ for (int i = 0; i < 1020; ++i) {
+ __ bl(hi, &end);
+ }
+ __ bind(&end);
+}
+
+
+TEST(regress4292_blx) {
+ CcTest::InitializeVM();
+ Isolate* isolate = CcTest::i_isolate();
+ HandleScope scope(isolate);
+
+ Assembler assm(isolate, NULL, 0);
+ Label end;
+ __ mov(r0, Operand(isolate->factory()->infinity_value()));
+ for (int i = 0; i < 1020; ++i) {
+ __ blx(&end);
+ }
+ __ bind(&end);
+}
+
#undef __
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698