i386: Update PR target/95021 tests
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 14 Jan 2021 14:56:17 +0000 (06:56 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 14 Jan 2021 15:05:33 +0000 (07:05 -0800)
commita512079ef40e442c1269ea1cc55f18790ba68449
tree0cbbfee7d3d9580342469cbd1b0fbf78000971c9
parenta802a2ef5f16bdaa0fd3b24c47e5cf50149b90f4
i386: Update PR target/95021 tests

Also pass -mpreferred-stack-boundary=4 -mno-stackrealign to avoid
disabling STV by:

  /* Disable STV if -mpreferred-stack-boundary={2,3} or
     -mincoming-stack-boundary={2,3} or -mstackrealign - the needed
     stack realignment will be extra cost the pass doesn't take into
     account and the pass can't realign the stack.  */
  if (ix86_preferred_stack_boundary < 128
      || ix86_incoming_stack_boundary < 128
      || opts->x_ix86_force_align_arg_pointer)
    opts->x_target_flags &= ~MASK_STV;

PR target/98676
* gcc.target/i386/pr95021-1.c: Add -mpreferred-stack-boundary=4
-mno-stackrealign.
* gcc.target/i386/pr95021-3.c: Likewise.
gcc/testsuite/gcc.target/i386/pr95021-1.c
gcc/testsuite/gcc.target/i386/pr95021-3.c