summaryrefslogtreecommitdiff
path: root/test/full-pipeline/should-pass/004-itype.asm
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-08-11 17:22:20 +1200
committerDavid Phillips <david@sighup.nz>2019-08-11 17:22:20 +1200
commit2d2628df0001d2b643811dc69717c4afe70c4e31 (patch)
treef5d0da23c47c3e677ca423a91838c5ad5467a5d9 /test/full-pipeline/should-pass/004-itype.asm
parent0e6f47211a0516cf2c96d2b9e89c0d841978c143 (diff)
downloadtoy-cpu-assembler-2d2628df0001d2b643811dc69717c4afe70c4e31.tar.xz
Fix and add tests for NULL deref cases found by scan-build
Diffstat (limited to 'test/full-pipeline/should-pass/004-itype.asm')
-rw-r--r--test/full-pipeline/should-pass/004-itype.asm5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/full-pipeline/should-pass/004-itype.asm b/test/full-pipeline/should-pass/004-itype.asm
new file mode 100644
index 0000000..4fbc032
--- /dev/null
+++ b/test/full-pipeline/should-pass/004-itype.asm
@@ -0,0 +1,5 @@
+; Test for some sort of parity between pseudo instructions for itypes
+ldi $0, 1234
+ldi $1, 0x1234
+ldi $1, 1
+ldi $1, 10