From: Rhys Kidd Date: Sat, 15 Aug 2015 07:06:57 +0000 (+0000) Subject: Add regression test for bz#350062 - vex x86->IR: unhandled instruction bytes: 0x66... X-Git-Tag: svn/VALGRIND_3_11_0~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c42c7b5dce40fed1eba298187c274a35a227eb33;p=thirdparty%2Fvalgrind.git Add regression test for bz#350062 - vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x3A 0xB (ROUNDSD) on OS X. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15546 --- diff --git a/none/tests/x86-darwin/Makefile.am b/none/tests/x86-darwin/Makefile.am index 0b76f950ae..a11fd45d19 100644 --- a/none/tests/x86-darwin/Makefile.am +++ b/none/tests/x86-darwin/Makefile.am @@ -5,10 +5,12 @@ dist_noinst_SCRIPTS = \ filter_stderr EXTRA_DIST = \ - bug341419.vgtest bug341419.stderr.exp + bug341419.vgtest bug341419.stderr.exp \ + bug350062.vgtest bug350062.stderr.exp check_PROGRAMS = \ - bug341419 + bug341419 \ + bug350062 AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) diff --git a/none/tests/x86-darwin/bug350062.c b/none/tests/x86-darwin/bug350062.c new file mode 100644 index 0000000000..3da92a2e3b --- /dev/null +++ b/none/tests/x86-darwin/bug350062.c @@ -0,0 +1,16 @@ +#include +#include +#include + +// Refer https://bugs.kde.org/show_bug.cgi?id=350062 + +int main(int argc, char **argv) +{ + double x = 1.1; + double i = floor(x); + + (void)i; + + fprintf(stderr, "PASS\n"); + return 0; +} diff --git a/none/tests/x86-darwin/bug350062.stderr.exp b/none/tests/x86-darwin/bug350062.stderr.exp new file mode 100644 index 0000000000..7ef22e9a43 --- /dev/null +++ b/none/tests/x86-darwin/bug350062.stderr.exp @@ -0,0 +1 @@ +PASS diff --git a/none/tests/x86-darwin/bug350062.vgtest b/none/tests/x86-darwin/bug350062.vgtest new file mode 100644 index 0000000000..f25f0d42bc --- /dev/null +++ b/none/tests/x86-darwin/bug350062.vgtest @@ -0,0 +1,3 @@ +prog: bug350062 +vgopts: -q +cleanup: rm -f vgcore.*