From: Mark Wielaard Date: Tue, 10 Dec 2013 09:31:18 +0000 (+0000) Subject: Add testcase for bug 328100 XABORT not implemented (VEX r2800). X-Git-Tag: svn/VALGRIND_3_10_0~682 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbf509b446255d1dbf65a6479f543ced8bfa12f7;p=thirdparty%2Fvalgrind.git Add testcase for bug 328100 XABORT not implemented (VEX r2800). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13754 --- diff --git a/none/tests/amd64/tm1.c b/none/tests/amd64/tm1.c index 86a31b396d..558bf90c1e 100644 --- a/none/tests/amd64/tm1.c +++ b/none/tests/amd64/tm1.c @@ -58,5 +58,9 @@ int main ( void ) : : "r"(&n) : "cc", "memory" ); */ + + __asm__ __volatile__( "xabort $0x1" ); + printf("xabort: outside transaction is nop.\n"); + return 0; } diff --git a/none/tests/amd64/tm1.stdout.exp b/none/tests/amd64/tm1.stdout.exp index 14f4c02d1f..165966a8da 100644 --- a/none/tests/amd64/tm1.stdout.exp +++ b/none/tests/amd64/tm1.stdout.exp @@ -1,2 +1,3 @@ transactionally_apply: ok = 0 (expected 0) xtest: rflags.Z = 1 (expected 1) +xabort: outside transaction is nop.