diff options
author | Eric Anholt <eric@anholt.net> | 2006-08-31 16:16:06 -0700 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-03-04 15:54:24 +0000 |
commit | d72f5c9828c76b0bd7d643b37e0215ebcba4759a (patch) | |
tree | bec18062519fc25d243ee48ad35f25898dcddfca /assembler/test | |
parent | 330903ad8189707069d8dff597ccf00706f35e94 (diff) |
Add a failing test for maximum ranges of UD/D immediates.
Diffstat (limited to 'assembler/test')
-rw-r--r-- | assembler/test/.gitignore | 1 | ||||
-rw-r--r-- | assembler/test/Makefile.am | 7 | ||||
-rw-r--r-- | assembler/test/immediate.expected | 3 | ||||
-rw-r--r-- | assembler/test/immediate.g4a | 3 |
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 }; |