aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--travis/test/br3058845-o0.bin.t1
-rw-r--r--travis/test/br3058845-ox.bin.t1
-rw-r--r--travis/test/br3058845.asm11
-rw-r--r--travis/test/br3058845.json20
4 files changed, 33 insertions, 0 deletions
diff --git a/travis/test/br3058845-o0.bin.t b/travis/test/br3058845-o0.bin.t
new file mode 100644
index 00000000..1b06153b
--- /dev/null
+++ b/travis/test/br3058845-o0.bin.t
@@ -0,0 +1 @@
+=f=f==f== \ No newline at end of file
diff --git a/travis/test/br3058845-ox.bin.t b/travis/test/br3058845-ox.bin.t
new file mode 100644
index 00000000..1a04f228
--- /dev/null
+++ b/travis/test/br3058845-ox.bin.t
@@ -0,0 +1 @@
+fff \ No newline at end of file
diff --git a/travis/test/br3058845.asm b/travis/test/br3058845.asm
new file mode 100644
index 00000000..6dce6792
--- /dev/null
+++ b/travis/test/br3058845.asm
@@ -0,0 +1,11 @@
+BITS 16
+cmp ax, 0xFFFF
+cmp eax, 0xFFFF_FFFF
+
+BITS 32
+cmp ax, 0xFFFF
+cmp eax, 0xFFFF_FFFF
+
+BITS 64
+cmp ax, 0xFFFF
+cmp eax, 0xFFFF_FFFF
diff --git a/travis/test/br3058845.json b/travis/test/br3058845.json
new file mode 100644
index 00000000..47736727
--- /dev/null
+++ b/travis/test/br3058845.json
@@ -0,0 +1,20 @@
+[
+ {
+ "description": "Test 0xFFFF optimization (-Ox)",
+ "id": "br3058845",
+ "format": "bin",
+ "source": "br3058845.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "br3058845-ox.bin" }
+ ]
+ },
+ {
+ "description": "Test 0xFFFF optimization (-O0)",
+ "ref": "br3058845",
+ "option": "-O0",
+ "target": [
+ { "output": "br3058845-o0.bin" }
+ ]
+ }
+]