Test indirect addressing, such as "g[a0.8]"
---
 test/Makefile.am               |    4 +++-
 test/indirect-address.expected |    1 +
 test/indirect-address.g4a      |    1 +
 test/run-test.sh               |    1 +
 4 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 test/indirect-address.expected
 create mode 100644 test/indirect-address.g4a

diff --git a/test/Makefile.am b/test/Makefile.am
index 0d8d349..7e852f4 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -70,7 +70,9 @@ TESTDATA = \
        declare.expected \
        declare.g4a \
        immediate.g4a \
-       immediate.expected
+       immediate.expected \
+       indirect_address.g4a \
+       indirect_address.expected
 
 EXTRA_DIST = \
        ${TESTDATA} \
diff --git a/test/indirect-address.expected b/test/indirect-address.expected
new file mode 100644
index 0000000..9e523fc
--- /dev/null
+++ b/test/indirect-address.expected
@@ -0,0 +1 @@
+   { 0x00000007, 0x25004631, 0x00000500, 0x00009000 },
diff --git a/test/indirect-address.g4a b/test/indirect-address.g4a
new file mode 100644
index 0000000..f3749ef
--- /dev/null
+++ b/test/indirect-address.g4a
@@ -0,0 +1 @@
+xor (1) g40<1>:ub     g40<0,1,0>:ub  g[a0.8]<0,1,0>:ub;
diff --git a/test/run-test.sh b/test/run-test.sh
index e02a6e0..7d1190a 100644
--- a/test/run-test.sh
+++ b/test/run-test.sh
@@ -64,6 +64,7 @@ TEST_GEN4_SHOULD_WORK="\
        endif \
        declare \
        immediate \
+       indirect-address \
        "
 
 # Tests that are expected to fail because they contain wrong code.
-- 
1.7.10.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to