diff graal/com.oracle.graal.truffle.test/sl/TestSlowPath01.sl @ 17250:9f001294893d

Truffle: Added test case that compiler intrinsics are not intrinsified if hidden behind a @SlowPath.
author Christian Humer <christian.humer@gmail.com>
date Mon, 29 Sep 2014 18:37:24 +0200
parents
children 04d6bb76cfb3
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/graal/com.oracle.graal.truffle.test/sl/TestSlowPath01.sl	Mon Sep 29 18:37:24 2014 +0200
@@ -0,0 +1,11 @@
+/* 
+ * This test verifies that CallTargets cannot exceed the TruffleInliningMaxCallerSize limit when inlining.
+ */
+
+function test1() {
+    testSlowPath01();
+}
+function main() {
+    waitForOptimization(callUntilOptimized(test1));
+    assertTrue(isOptimized(test1), "inlinableFunction must be compiled properly");
+}