brintos

brintos / llvm-project-archived public Read only

0
0
Text · 6.9 KiB · a6bb6a4 Raw
124 lines · plain
1// RUN: llvm-mc -triple=amdgcn -mcpu=gfx904 -show-encoding %s | FileCheck -check-prefix=GFX9-FMAMIX %s2// RUN: llvm-mc -triple=amdgcn -mcpu=gfx906 -show-encoding %s | FileCheck -check-prefix=GFX9-FMAMIX %s3// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900 %s 2>&1 | FileCheck -check-prefix=GFX9-MADMIX-ERR --implicit-check-not=error: %s4 5v_fma_mix_f32 v0, v1, v2, v36// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, v3 ; encoding: [0x00,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x04]7// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU8 9v_fma_mixlo_f16 v0, v1, v2, v310// GFX9-FMAMIX: v_fma_mixlo_f16 v0, v1, v2, v3 ; encoding: [0x00,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x04]11// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU12 13v_fma_mixhi_f16 v0, v1, v2, v314// GFX9-FMAMIX: v_fma_mixhi_f16 v0, v1, v2, v3 ; encoding: [0x00,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x04]15// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU16 17//18// Regular source modifiers on non-packed instructions19//20 21v_fma_mix_f32 v0, abs(v1), v2, v322// GFX9-FMAMIX: v_fma_mix_f32 v0, |v1|, v2, v3 ; encoding: [0x00,0x01,0xa0,0xd3,0x01,0x05,0x0e,0x04]23// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU24 25v_fma_mix_f32 v0, v1, abs(v2), v326// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, |v2|, v3 ; encoding: [0x00,0x02,0xa0,0xd3,0x01,0x05,0x0e,0x04]27// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU28 29v_fma_mix_f32 v0, v1, v2, abs(v3)30// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, |v3| ; encoding: [0x00,0x04,0xa0,0xd3,0x01,0x05,0x0e,0x04]31// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU32 33v_fma_mix_f32 v0, -v1, v2, v334// GFX9-FMAMIX: v_fma_mix_f32 v0, -v1, v2, v3 ; encoding: [0x00,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x24]35// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU36 37v_fma_mix_f32 v0, v1, -v2, v338// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, -v2, v3 ; encoding: [0x00,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x44]39// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU40 41v_fma_mix_f32 v0, v1, v2, -v342// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, -v3 ; encoding: [0x00,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x84]43// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU44 45v_fma_mix_f32 v0, -abs(v1), v2, v346// GFX9-FMAMIX: v_fma_mix_f32 v0, -|v1|, v2, v3 ; encoding: [0x00,0x01,0xa0,0xd3,0x01,0x05,0x0e,0x24]47// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU48 49v_fma_mix_f32 v0, v1, -abs(v2), v350// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, -|v2|, v3 ; encoding: [0x00,0x02,0xa0,0xd3,0x01,0x05,0x0e,0x44]51// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU52 53v_fma_mix_f32 v0, v1, v2, -abs(v3)54// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, -|v3| ; encoding: [0x00,0x04,0xa0,0xd3,0x01,0x05,0x0e,0x84]55// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU56 57v_fma_mixlo_f16 v0, abs(v1), -v2, abs(v3)58// GFX9-FMAMIX: v_fma_mixlo_f16 v0, |v1|, -v2, |v3| ; encoding: [0x00,0x05,0xa1,0xd3,0x01,0x05,0x0e,0x44]59// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU60 61v_fma_mixhi_f16 v0, -v1, abs(v2), -abs(v3)62// GFX9-FMAMIX: v_fma_mixhi_f16 v0, -v1, |v2|, -|v3| ; encoding: [0x00,0x06,0xa2,0xd3,0x01,0x05,0x0e,0xa4]63// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU64 65v_fma_mixlo_f16 v0, v1, v2, v3 clamp66// GFX9-FMAMIX: v_fma_mixlo_f16 v0, v1, v2, v3  clamp ; encoding: [0x00,0x80,0xa1,0xd3,0x01,0x05,0x0e,0x04]67// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU68 69v_fma_mixhi_f16 v0, v1, v2, v3 clamp70// GFX9-FMAMIX: v_fma_mixhi_f16 v0, v1, v2, v3  clamp ; encoding: [0x00,0x80,0xa2,0xd3,0x01,0x05,0x0e,0x04]71// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU72 73//74// op_sel with non-packed instructions75//76 77v_fma_mix_f32 v0, v1, v2, v3 op_sel:[0,0,0]78// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, v3 ; encoding: [0x00,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x04]79// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU80 81v_fma_mix_f32 v0, v1, v2, v3 op_sel:[1,0,0]82// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, v3 op_sel:[1,0,0] ; encoding: [0x00,0x08,0xa0,0xd3,0x01,0x05,0x0e,0x04]83// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU84 85v_fma_mix_f32 v0, v1, v2, v3 op_sel:[0,1,0]86// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, v3 op_sel:[0,1,0] ; encoding: [0x00,0x10,0xa0,0xd3,0x01,0x05,0x0e,0x04]87// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU88 89v_fma_mix_f32 v0, v1, v2, v3 op_sel:[0,0,1]90// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, v3 op_sel:[0,0,1] ; encoding: [0x00,0x20,0xa0,0xd3,0x01,0x05,0x0e,0x04]91// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU92 93v_fma_mix_f32 v0, v1, v2, v3 op_sel:[1,1,1]94// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, v3 op_sel:[1,1,1] ; encoding: [0x00,0x38,0xa0,0xd3,0x01,0x05,0x0e,0x04]95// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU96 97v_fma_mix_f32 v0, v1, v2, v398// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, v3 ; encoding: [0x00,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x04]99// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU100 101v_fma_mix_f32 v0, v1, v2, v3 op_sel_hi:[1,0,0]102// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, v3 op_sel_hi:[1,0,0] ; encoding: [0x00,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x0c]103// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU104 105v_fma_mix_f32 v0, v1, v2, v3 op_sel_hi:[0,1,0]106// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, v3 op_sel_hi:[0,1,0] ; encoding: [0x00,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x14]107// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU108 109v_fma_mix_f32 v0, v1, v2, v3 op_sel_hi:[0,0,1]110// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, v3 op_sel_hi:[0,0,1] ; encoding: [0x00,0x40,0xa0,0xd3,0x01,0x05,0x0e,0x04]111// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU112 113v_fma_mix_f32 v0, v1, v2, v3 op_sel_hi:[1,1,1]114// GFX9-FMAMIX: v_fma_mix_f32 v0, v1, v2, v3 op_sel_hi:[1,1,1] ; encoding: [0x00,0x40,0xa0,0xd3,0x01,0x05,0x0e,0x1c]115// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU116 117v_fma_mixlo_f16 v0, v1, v2, v3 op_sel_hi:[1,0,1] clamp118// GFX9-FMAMIX: v_fma_mixlo_f16 v0, v1, v2, v3 op_sel_hi:[1,0,1] clamp ; encoding: [0x00,0xc0,0xa1,0xd3,0x01,0x05,0x0e,0x0c]119// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU120 121v_fma_mixhi_f16 v0, v1, v2, v3 op_sel_hi:[1,0,1] clamp122// GFX9-FMAMIX: v_fma_mixhi_f16 v0, v1, v2, v3 op_sel_hi:[1,0,1] clamp ; encoding: [0x00,0xc0,0xa2,0xd3,0x01,0x05,0x0e,0x0c]123// GFX9-MADMIX-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU124