From: Homer Hsing Subject: [PATCH] Intel-gen4asm: Add a test case for indirect addressing Date: Fri, 22 Feb 2013 15:58:48 +0800 Message-ID: <1361519928-20407-1-git-send-email-homer.xing@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 5723EE5E01 for ; Thu, 21 Feb 2013 23:58:13 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org Cc: Homer Hsing List-Id: intel-gfx@lists.freedesktop.org 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