1; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s 2 3; FUNC-LABEL: {{^}}@div: 4; GCN: main 5; GCN: v_interp_mov 6; GCN: v_interp_mov 7; GCN-NEXT: v_rcp_f32 8; GCN-NEXT: v_mul_f32 9; GCN-NEXT: epilog 10 11#shader fs div 12#version 400 13flat in vec2 v; 14void main() { 15 gl_FragColor.x = v.x / v.y; 16} 17 18 19; FUNC-LABEL: {{^}}@rcp: 20; GCN: main 21; GCN: v_interp_mov 22; GCN-NEXT: v_rcp_f32 23; GCN-NEXT: epilog 24 25#shader fs rcp 26#version 400 27flat in float x; 28void main() { 29 gl_FragColor.x = 1 / x; 30} 31