summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gas/testsuite/gas/all/eval.s
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/gas/testsuite/gas/all/eval.s')
-rw-r--r--binutils-2.25/gas/testsuite/gas/all/eval.s48
1 files changed, 48 insertions, 0 deletions
diff --git a/binutils-2.25/gas/testsuite/gas/all/eval.s b/binutils-2.25/gas/testsuite/gas/all/eval.s
new file mode 100644
index 00000000..14efe94c
--- /dev/null
+++ b/binutils-2.25/gas/testsuite/gas/all/eval.s
@@ -0,0 +1,48 @@
+.equ zero, 0
+.equ one, 1
+.equ two, 2
+
+
+ .data
+
+ .if two > one
+ .byte one
+ .else
+ .byte two
+ .endif
+
+ .if one == one
+ .byte one
+ .else
+ .byte two
+ .endif
+
+ .if one < two
+ .byte one
+ .else
+ .byte two
+ .endif
+
+ .if one <> two
+ .byte one
+ .else
+ .byte two
+ .endif
+
+ .if one != two
+ .byte one
+ .else
+ .byte two
+ .endif
+
+ .if one <= two
+ .byte one
+ .else
+ .byte two
+ .endif
+
+ .if two >= one
+ .byte one
+ .else
+ .byte two
+ .endif