Skip to contentSkip to conversation

Intel-gen4asm: Add a test case for indirect addressing

PATCH New Homer Hsing 1 participant 1 message Feb 22, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Intel-gen4asm: Add a test case for indirect addressing

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