about summary refs log tree commit diff stats
path: root/test/samples/x86_32/dg_test_06.S
diff options
context:
space:
mode:
Diffstat (limited to 'test/samples/x86_32/dg_test_06.S')
-rw-r--r--test/samples/x86_32/dg_test_06.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/samples/x86_32/dg_test_06.S b/test/samples/x86_32/dg_test_06.S
new file mode 100644
index 00000000..e12766f2
--- /dev/null
+++ b/test/samples/x86_32/dg_test_06.S
@@ -0,0 +1,12 @@
+main:
+	MOV ECX, 0x1
+	MOV EDX, 0x2
+	JMP lbl1
+lbl1:
+	MOV EBX, ECX
+	MOV ECX, EDX
+	CMP EAX, 0x0
+	JZ lbl1
+end:
+	MOV EAX, EBX
+	RET