]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add test for tw instruction.
authorJulian Seward <jseward@acm.org>
Sat, 1 Sep 2007 23:22:39 +0000 (23:22 +0000)
committerJulian Seward <jseward@acm.org>
Sat, 1 Sep 2007 23:22:39 +0000 (23:22 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6797

none/tests/ppc32/Makefile.am
none/tests/ppc32/tw.c [new symlink]
none/tests/ppc32/tw.stderr.exp [new file with mode: 0644]
none/tests/ppc32/tw.stdout.exp [new file with mode: 0644]
none/tests/ppc32/tw.vgtest [new file with mode: 0644]

index 9534b74cfed82dc969466f469a4b77e20032e8e5..1ed0703452f20cc43dfb808351cd89e462ddcc4e 100644 (file)
@@ -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 (symlink)
index 0000000..3685442
--- /dev/null
@@ -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 (file)
index 0000000..139597f
--- /dev/null
@@ -0,0 +1,2 @@
+
+
diff --git a/none/tests/ppc32/tw.stdout.exp b/none/tests/ppc32/tw.stdout.exp
new file mode 100644 (file)
index 0000000..73ab3ea
--- /dev/null
@@ -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 (file)
index 0000000..2aa751e
--- /dev/null
@@ -0,0 +1 @@
+prog: tw