2 ! { dg-options "-fdec-intrinsic-ints" }
4 ! Test B/I/J/K integer intrinsics.
10 integer*1 :: ab
= 9_1, bb
= 3_1, cb
11 integer*2 :: ai
= 9_2, bi
= 3_2, ci
12 integer*4 :: aj
= 9_4, bj
= 3_4, cj
13 integer*8 :: ak
= 9_8, bk
= 3_8, ck
14 integer :: a
= 9 , b
= 3 , c
16 integer*1 :: ib
= 9_1, bpos
= 3_1
17 integer*2 :: ii
= 9_2, ipos
= 3_2
18 integer*4 :: ij
= 9_4, jpos
= 3_4
19 integer*8 :: ik
= 9_8, kpos
= 3_8
20 integer :: i
= 9 , pos
= 3
22 integer*1 :: ba
, bc
, bd
23 integer*2 :: ia
, ic
, id
24 integer*4 :: ja
, jb
, jc
, jd
25 integer*8 :: ka
, kb
, kc
, kd
100 ci
= iibset(9_2, 3_2)
101 cj
= jibset(9_4, 3_4)
102 ck
= kibset(9_8, 3_8)
141 ba
= bbits(121, 10, 5)
142 call bmvbits(121_1, 2, 3, ba
, 1)
143 bc
= bshftc(ba
, 3, 6)
147 ia
= iibits(357, 10, 5)
148 call imvbits(357_2, 8, 3, ia
, 1)
149 ic
= iishftc(ia
, 3, 6)
153 ja
= jibits(357, 10, 5)
154 call jmvbits(357_4, 8, 3, ja
, 1)
155 jc
= jishftc(ja
, 3, 6)
159 ka
= kibits(357_8, 10_8, 5_8)
160 call kmvbits(357_8, 8_8, 3_8, ka
, 1_8)
161 kc
= kishftc(ka
, 3_8, 6_8)
162 kd
= kishft(kc
, -3_8)