summaryrefslogtreecommitdiff
path: root/none
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2007-09-01 23:22:39 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2007-09-01 23:22:39 +0000
commit1ceeaf5250d8fc5dad3e4c62e161281d6e2e8c12 (patch)
tree56aac7eb2078848b2097e3987e0e37d85f3864e2 /none
parentc485ef2fc36779ae23aebd7afd8b3b79a05b1129 (diff)
Add test for tw instruction.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6797 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'none')
-rw-r--r--none/tests/ppc32/Makefile.am3
l---------none/tests/ppc32/tw.c1
-rw-r--r--none/tests/ppc32/tw.stderr.exp2
-rw-r--r--none/tests/ppc32/tw.stdout.exp96
-rw-r--r--none/tests/ppc32/tw.vgtest1
5 files changed, 102 insertions, 1 deletions
diff --git a/none/tests/ppc32/Makefile.am b/none/tests/ppc32/Makefile.am
index 9534b74c..1ed07034 100644
--- a/none/tests/ppc32/Makefile.am
+++ b/none/tests/ppc32/Makefile.am
@@ -18,13 +18,14 @@ EXTRA_DIST = $(noinst_SCRIPTS) \
test_gx.stderr.exp test_gx.stdout.exp test_gx.vgtest \
testVMX.stderr.exp testVMX.stdout.exp testVMX.vgtest \
twi.stderr.exp twi.stdout.exp twi.vgtest \
+ tw.stderr.exp tw.stdout.exp tw.vgtest \
xlc_dbl_u32.stderr.exp xlc_dbl_u32.stdout.exp xlc_dbl_u32.vgtest
check_PROGRAMS = \
bug129390-ppc32 \
bug139050-ppc32 \
ldstrev lsw jm-insns mftocrf mcrfs round test_fx test_gx \
- testVMX twi xlc_dbl_u32
+ testVMX twi tw xlc_dbl_u32
AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g -I$(top_srcdir)/include \
@FLAG_M32@
diff --git a/none/tests/ppc32/tw.c b/none/tests/ppc32/tw.c
new file mode 120000
index 00000000..36854423
--- /dev/null
+++ b/none/tests/ppc32/tw.c
@@ -0,0 +1 @@
+../ppc64/tw_td.c \ No newline at end of file
diff --git a/none/tests/ppc32/tw.stderr.exp b/none/tests/ppc32/tw.stderr.exp
new file mode 100644
index 00000000..139597f9
--- /dev/null
+++ b/none/tests/ppc32/tw.stderr.exp
@@ -0,0 +1,2 @@
+
+
diff --git a/none/tests/ppc32/tw.stdout.exp b/none/tests/ppc32/tw.stdout.exp
new file mode 100644
index 00000000..73ab3ea1
--- /dev/null
+++ b/none/tests/ppc32/tw.stdout.exp
@@ -0,0 +1,96 @@
+tw_0(-150,-100) -> no trap
+tw_0(-100,-100) -> no trap
+tw_0( -50,-100) -> no trap
+tw_1(-150,-100) -> no trap
+tw_1(-100,-100) -> no trap
+tw_1( -50,-100) -> TRAP
+tw_2(-150,-100) -> TRAP
+tw_2(-100,-100) -> no trap
+tw_2( -50,-100) -> no trap
+tw_3(-150,-100) -> TRAP
+tw_3(-100,-100) -> no trap
+tw_3( -50,-100) -> TRAP
+tw_4(-150,-100) -> no trap
+tw_4(-100,-100) -> TRAP
+tw_4( -50,-100) -> no trap
+tw_5(-150,-100) -> no trap
+tw_5(-100,-100) -> TRAP
+tw_5( -50,-100) -> TRAP
+tw_6(-150,-100) -> TRAP
+tw_6(-100,-100) -> TRAP
+tw_6( -50,-100) -> no trap
+tw_7(-150,-100) -> TRAP
+tw_7(-100,-100) -> TRAP
+tw_7( -50,-100) -> TRAP
+tw_8(-150,-100) -> no trap
+tw_8(-100,-100) -> no trap
+tw_8( -50,-100) -> TRAP
+tw_9(-150,-100) -> no trap
+tw_9(-100,-100) -> no trap
+tw_9( -50,-100) -> TRAP
+tw_10(-150,-100) -> TRAP
+tw_10(-100,-100) -> no trap
+tw_10( -50,-100) -> TRAP
+tw_11(-150,-100) -> TRAP
+tw_11(-100,-100) -> no trap
+tw_11( -50,-100) -> TRAP
+tw_12(-150,-100) -> no trap
+tw_12(-100,-100) -> TRAP
+tw_12( -50,-100) -> TRAP
+tw_13(-150,-100) -> no trap
+tw_13(-100,-100) -> TRAP
+tw_13( -50,-100) -> TRAP
+tw_14(-150,-100) -> TRAP
+tw_14(-100,-100) -> TRAP
+tw_14( -50,-100) -> TRAP
+tw_15(-150,-100) -> TRAP
+tw_15(-100,-100) -> TRAP
+tw_15( -50,-100) -> TRAP
+tw_16(-150,-100) -> TRAP
+tw_16(-100,-100) -> no trap
+tw_16( -50,-100) -> no trap
+tw_17(-150,-100) -> TRAP
+tw_17(-100,-100) -> no trap
+tw_17( -50,-100) -> TRAP
+tw_18(-150,-100) -> TRAP
+tw_18(-100,-100) -> no trap
+tw_18( -50,-100) -> no trap
+tw_19(-150,-100) -> TRAP
+tw_19(-100,-100) -> no trap
+tw_19( -50,-100) -> TRAP
+tw_20(-150,-100) -> TRAP
+tw_20(-100,-100) -> TRAP
+tw_20( -50,-100) -> no trap
+tw_21(-150,-100) -> TRAP
+tw_21(-100,-100) -> TRAP
+tw_21( -50,-100) -> TRAP
+tw_22(-150,-100) -> TRAP
+tw_22(-100,-100) -> TRAP
+tw_22( -50,-100) -> no trap
+tw_23(-150,-100) -> TRAP
+tw_23(-100,-100) -> TRAP
+tw_23( -50,-100) -> TRAP
+tw_24(-150,-100) -> TRAP
+tw_24(-100,-100) -> no trap
+tw_24( -50,-100) -> TRAP
+tw_25(-150,-100) -> TRAP
+tw_25(-100,-100) -> no trap
+tw_25( -50,-100) -> TRAP
+tw_26(-150,-100) -> TRAP
+tw_26(-100,-100) -> no trap
+tw_26( -50,-100) -> TRAP
+tw_27(-150,-100) -> TRAP
+tw_27(-100,-100) -> no trap
+tw_27( -50,-100) -> TRAP
+tw_28(-150,-100) -> TRAP
+tw_28(-100,-100) -> TRAP
+tw_28( -50,-100) -> TRAP
+tw_29(-150,-100) -> TRAP
+tw_29(-100,-100) -> TRAP
+tw_29( -50,-100) -> TRAP
+tw_30(-150,-100) -> TRAP
+tw_30(-100,-100) -> TRAP
+tw_30( -50,-100) -> TRAP
+tw_31(-150,-100) -> TRAP
+tw_31(-100,-100) -> TRAP
+tw_31( -50,-100) -> TRAP
diff --git a/none/tests/ppc32/tw.vgtest b/none/tests/ppc32/tw.vgtest
new file mode 100644
index 00000000..2aa751e4
--- /dev/null
+++ b/none/tests/ppc32/tw.vgtest
@@ -0,0 +1 @@
+prog: tw