diff options
author | Homer Hsing <homer.xing@intel.com> | 2012-09-18 16:28:27 +0800 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-03-04 15:54:32 +0000 |
commit | 131f61f2ef2ecac4f0e4cb207a58449f36abfa36 (patch) | |
tree | c35be2e63e84fae1a02be2e32b64f92953ab4e33 /assembler | |
parent | c3bcc7dbeb520fcca387dac510f47d4847cc32b8 (diff) |
Add a test case for ".declare" pragma
Diffstat (limited to 'assembler')
-rw-r--r-- | assembler/test/Makefile.am | 5 | ||||
-rw-r--r-- | assembler/test/declare.expected | 3 | ||||
-rw-r--r-- | assembler/test/declare.g4a | 4 |
3 files changed, 11 insertions, 1 deletions
diff --git a/assembler/test/Makefile.am b/assembler/test/Makefile.am index 0ec1bd6f..1c5b13e9 100644 --- a/assembler/test/Makefile.am +++ b/assembler/test/Makefile.am @@ -21,6 +21,7 @@ TESTS = \ halt \ wait \ endif \ + declare \ immediate # Tests that are expected to fail because they contain some inccorect code. @@ -66,6 +67,8 @@ TESTDATA = \ wait.g4a \ endif.expected \ endif.g4a \ + declare.expected \ + declare.g4a \ immediate.g4a \ immediate.expected @@ -79,4 +82,4 @@ $(TESTS): run-test.sh CLEANFILES = \ *.out \ - ${TESTS}
\ No newline at end of file + ${TESTS} diff --git a/assembler/test/declare.expected b/assembler/test/declare.expected new file mode 100644 index 00000000..36ad68f2 --- /dev/null +++ b/assembler/test/declare.expected @@ -0,0 +1,3 @@ + { 0x00e00040, 0x20007fbd, 0x008d0f64, 0x3f9d70a4 }, + { 0x00e00040, 0x200077bd, 0x008d0f64, 0x008d0020 }, + { 0x00e00040, 0x2f6477bd, 0x008d0000, 0x008d0020 }, diff --git a/assembler/test/declare.g4a b/assembler/test/declare.g4a new file mode 100644 index 00000000..726fe86c --- /dev/null +++ b/assembler/test/declare.g4a @@ -0,0 +1,4 @@ +.declare X1 Base=g123.4 ElementSize=4 SrcRegion=<8,8,1> DstRegion=<1> Type=F +add g0<1>:f X1 1.23:f; +add g0<1>:f X1 g1<8,8,1>:f; +add X1 g0<8,8,1>:f g1<8,8,1>:f; |