Support target templates in bytecode tests

Avoid test data duplication
This commit is contained in:
Mikhael Bogdanov
2019-07-16 09:15:31 +02:00
parent de1e27c584
commit 496765f41e
46 changed files with 250 additions and 679 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
const val N = 42L
fun test(): Long {
@@ -18,8 +17,15 @@ fun test(): Long {
// 0 getFirst
// 0 getLast
// 0 getStep
// 1 LCMP
// 1 IFGT
// 1 IF
// 0 L2I
// 0 I2L
// 0 I2L
// JVM_TEMPLATES
// 1 LCMP
// 1 IF
// JVM_IR_TEMPLATES
// 2 LCMP
// 1 IFLE
// 2 IF