~mmach/netext73/mesa-haswell

« back to all changes in this revision

Viewing changes to src/gallium/drivers/radeonsi/glsl_tests/bitfield_extract.glsl

  • Committer: mmach
  • Date: 2022-09-22 19:56:13 UTC
  • Revision ID: netbit73@gmail.com-20220922195613-wtik9mmy20tmor0i
2022-09-22 21:17:09

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s
2
 
 
3
 
; FUNC-LABEL: {{^}}@bfe_i32:
4
 
; GCN: main
5
 
; GCN: v_interp_mov
6
 
; GCN: v_interp_mov
7
 
; GCN: v_interp_mov
8
 
; GCN-NEXT: v_bfe_i32
9
 
; GCN-NEXT: epilog
10
 
 
11
 
#shader fs bfe_i32
12
 
#version 400
13
 
flat in ivec3 v;
14
 
out ivec4 o;
15
 
void main() {
16
 
    o.x = bitfieldExtract(v.x, v.y, v.z);
17
 
}
18
 
 
19
 
 
20
 
; FUNC-LABEL: {{^}}@bfe_u32:
21
 
; GCN: main
22
 
; GCN: v_interp_mov
23
 
; GCN: v_interp_mov
24
 
; GCN: v_interp_mov
25
 
; GCN-NEXT: v_bfe_u32
26
 
; GCN-NEXT: epilog
27
 
 
28
 
#shader fs bfe_u32
29
 
#version 400
30
 
flat in uvec3 v;
31
 
out uvec4 o;
32
 
void main() {
33
 
    o.x = bitfieldExtract(v.x, int(v.y), int(v.z));
34
 
}