From: Homer Hsing <homer.xing@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: Homer Hsing <homer.xing@intel.com>
Subject: [PATCH] Intel-gen4asm: Add a test case for indirect addressing
Date: Fri, 22 Feb 2013 15:58:48 +0800 [thread overview]
Message-ID: <1361519928-20407-1-git-send-email-homer.xing@intel.com> (raw)
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
reply other threads:[~2013-02-22 7:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1361519928-20407-1-git-send-email-homer.xing@intel.com \
--to=homer.xing@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.