From d62a61e52eea69b0d2e84c24db69951bb29e6b1f Mon Sep 17 00:00:00 2001 From: amylaar Date: Thu, 17 Aug 2006 13:28:03 +0000 Subject: [PATCH] * gcc.c-torture/execute/pr28289.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116224 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.c-torture/execute/pr28289.c | 32 +++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/pr28289.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3c65908443f..cd8b9ab2819 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2006-08-17 J"orn Rennecke + + * gcc.c-torture/execute/pr28289.c: New test. + 2006-08-17 Jakub Jelinek PR c/28744 diff --git a/gcc/testsuite/gcc.c-torture/execute/pr28289.c b/gcc/testsuite/gcc.c-torture/execute/pr28289.c new file mode 100644 index 00000000000..c3739a9543a --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr28289.c @@ -0,0 +1,32 @@ +extern int ok (int); +extern void exit (); +static int gen_x86_64_shrd (int); +static int +gen_x86_64_shrd(int a __attribute__ ((__unused__))) +{ + return 0; +} + +extern int gen_x86_shrd_1 (int); +extern void ix86_split_ashr (int); + +void +ix86_split_ashr (int mode) +{ + (mode != 0 + ? ok + : gen_x86_64_shrd) (0); +} + +int +main (int argc, char **argv) +{ + ix86_split_ashr (argc); + return 1; +} + +int +ok (int i) +{ + exit (i); +} -- 2.11.4.GIT