summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assembler/test/.gitignore1
-rw-r--r--assembler/test/Makefile.am7
-rw-r--r--assembler/test/immediate.expected3
-rw-r--r--assembler/test/immediate.g4a3
4 files changed, 12 insertions, 2 deletions
diff --git a/assembler/test/.gitignore b/assembler/test/.gitignore
index f3c13453..fbbf94ba 100644
--- a/assembler/test/.gitignore
+++ b/assembler/test/.gitignore
@@ -12,3 +12,4 @@ jmpi
if
iff
while
+immediate
diff --git a/assembler/test/Makefile.am b/assembler/test/Makefile.am
index 122c035c..dec7e938 100644
--- a/assembler/test/Makefile.am
+++ b/assembler/test/Makefile.am
@@ -13,7 +13,8 @@ TESTS = \
jmpi \
if \
iff \
- while
+ while \
+ immediate
# Tests that are expected to fail because they contain some inccorect code.
XFAIL_TESTS = \
@@ -45,7 +46,9 @@ TESTDATA = \
iff.expected \
iff.g4a \
while.expected \
- while.g4a
+ while.g4a \
+ immediate.g4a \
+ immediate.expected
EXTRA_DIST = \
${TESTDATA} \
diff --git a/assembler/test/immediate.expected b/assembler/test/immediate.expected
new file mode 100644
index 00000000..b1aa921f
--- /dev/null
+++ b/assembler/test/immediate.expected
@@ -0,0 +1,3 @@
+ { 0x00000001, 0x20000061, 0x00000000, 0xffffffff },
+ { 0x00000001, 0x200000e1, 0x00000000, 0x7fffffff },
+ { 0x00000001, 0x200000e1, 0x00000000, 0x80000000 },
diff --git a/assembler/test/immediate.g4a b/assembler/test/immediate.g4a
new file mode 100644
index 00000000..4b9e2d32
--- /dev/null
+++ b/assembler/test/immediate.g4a
@@ -0,0 +1,3 @@
+mov (1) g0<1>UD 4294967295UD { align1 };
+mov (1) g0<1>UD 2147483647D { align1 };
+mov (1) g0<1>UD -2147483648D { align1 };