1 /* Check that no unnecessary T bit stores are done before conditional
3 This case was extracted from the CSiBE set and contained the following
21 In this reduced code the movt insns were only present in the
22 unwanted sequences. Thus, if we see any movt insns, something is not
23 working as expected. This test requires -O2 because the T bit stores
24 in question will be eliminated in additional insn split passes after
26 /* { dg-do compile } */
27 /* { dg-options "-O2" } */
28 /* { dg-final { scan-assembler-not "movt" } } */
32 unsigned long nr_sectors
;
42 struct request_list rq
;
43 volatile int nr_sectors
;
44 int max_queue_sectors
;
46 unsigned long bounce_pfn
;
49 typedef struct request_queue request_queue_t
;
52 blk_oversized_queue (request_queue_t
* q
)
55 return q
->nr_sectors
> q
->max_queue_sectors
;
56 return q
->rq
.count
== 0;
60 get_request (request_queue_t
* q
, int rw
)
62 struct request
* rq
= ((void*)0);
63 struct request_list
*rl
= &q
->rq
;
65 if (blk_oversized_queue (q
))
67 if ((rw
== 1) || (rw
== 0))
69 if (blk_oversized_queue (q
))