1bf215546Sopenharmony_ci; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s
2bf215546Sopenharmony_ci
3bf215546Sopenharmony_ci; FUNC-LABEL: {{^}}@fma:
4bf215546Sopenharmony_ci; GCN: main
5bf215546Sopenharmony_ci; GCN: v_interp_mov
6bf215546Sopenharmony_ci; GCN: v_interp_mov
7bf215546Sopenharmony_ci; GCN: v_interp_mov
8bf215546Sopenharmony_ci; GCN-NEXT: v_mac_f32
9bf215546Sopenharmony_ci; GCN-NEXT: epilog
10bf215546Sopenharmony_ci
11bf215546Sopenharmony_ci#shader fs fma
12bf215546Sopenharmony_ci#version 400
13bf215546Sopenharmony_ciflat in vec3 v;
14bf215546Sopenharmony_civoid main() {
15bf215546Sopenharmony_ci    gl_FragColor.x = fma(v.x, v.y, v.z);
16bf215546Sopenharmony_ci}
17