diff options
Diffstat (limited to 'llvm/projects/Stacker/test/over2.st')
-rw-r--r-- | llvm/projects/Stacker/test/over2.st | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/projects/Stacker/test/over2.st b/llvm/projects/Stacker/test/over2.st new file mode 100644 index 00000000000..cd4618aa0d7 --- /dev/null +++ b/llvm/projects/Stacker/test/over2.st @@ -0,0 +1,14 @@ +# +# OVER2 test +# +# Logic: // w1 w2 w3 w4 -- w1 w2 w3 w4 w1 w2 +# +FORWARD success; +FORWARD failure; +: try_0 0 = IF success ELSE failure ENDIF ; +: try_1b 1 = IF try_0 ELSE failure ENDIF ; +: try_2 2 = IF try_1b ELSE failure ENDIF ; +: try_3 3 = IF try_2 ELSE failure ENDIF ; +: try_4 4 = IF try_3 ELSE failure ENDIF ; +: try_1a 1 = IF try_4 ELSE failure ENDIF ; +: MAIN 0 1 2 3 4 OVER2 2 = IF try_1a ELSE failure ENDIF ; |