131 lines · plain
1// RUN: llvm-mc -triple=amdgcn -mcpu=gfx950 -show-encoding %s | FileCheck --check-prefix=GFX950 %s2// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx942 %s 2>&1 | FileCheck -check-prefix=GFX942-ERR --strict-whitespace %s3 4v_prng_b32 v5, v15// GFX950: v_prng_b32_e32 v5, v1 ; encoding: [0x01,0xb1,0x0a,0x7e]6// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU7 8v_prng_b32 v5, v2559// GFX950: v_prng_b32_e32 v5, v255 ; encoding: [0xff,0xb1,0x0a,0x7e]10// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU11 12v_prng_b32 v5, s113// GFX950: v_prng_b32_e32 v5, s1 ; encoding: [0x01,0xb0,0x0a,0x7e]14// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU15 16v_prng_b32 v5, s10117// GFX950: v_prng_b32_e32 v5, s101 ; encoding: [0x65,0xb0,0x0a,0x7e]18// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU19 20v_prng_b32 v5, vcc_lo21// GFX950: v_prng_b32_e32 v5, vcc_lo ; encoding: [0x6a,0xb0,0x0a,0x7e]22// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU23 24v_prng_b32 v5, vcc_hi25// GFX950: v_prng_b32_e32 v5, vcc_hi ; encoding: [0x6b,0xb0,0x0a,0x7e]26// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU27 28v_prng_b32 v5, ttmp1529// GFX950: v_prng_b32_e32 v5, ttmp15 ; encoding: [0x7b,0xb0,0x0a,0x7e]30// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU31 32v_prng_b32 v5, m033// GFX950: v_prng_b32_e32 v5, m0 ; encoding: [0x7c,0xb0,0x0a,0x7e]34// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU35 36v_prng_b32 v5, exec_lo37// GFX950: v_prng_b32_e32 v5, exec_lo ; encoding: [0x7e,0xb0,0x0a,0x7e]38// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU39 40v_prng_b32 v5, exec_hi41// GFX950: v_prng_b32_e32 v5, exec_hi ; encoding: [0x7f,0xb0,0x0a,0x7e]42// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU43 44v_prng_b32 v5, -145// GFX950: v_prng_b32_e32 v5, -1 ; encoding: [0xc1,0xb0,0x0a,0x7e]46// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU47 48v_prng_b32 v5, 0.549// GFX950: v_prng_b32_e32 v5, 0.5 ; encoding: [0xf0,0xb0,0x0a,0x7e]50// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU51 52v_prng_b32 v5, src_scc53// GFX950: v_prng_b32_e32 v5, src_scc ; encoding: [0xfd,0xb0,0x0a,0x7e]54// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU55 56v_prng_b32 v255, 0xaf12345657// GFX950: v_prng_b32_e32 v255, 0xaf123456 ; encoding: [0xff,0xb0,0xfe,0x7f,0x56,0x34,0x12,0xaf]58// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU59 60v_cvt_f32_bf16 v5, v161// GFX950: v_cvt_f32_bf16_e32 v5, v1 ; encoding: [0x01,0xb7,0x0a,0x7e]62// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU63 64v_cvt_f32_bf16 v5, v12765// GFX950: v_cvt_f32_bf16_e32 v5, v127 ; encoding: [0x7f,0xb7,0x0a,0x7e]66// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU67 68v_cvt_f32_bf16 v5, s169// GFX950: v_cvt_f32_bf16_e32 v5, s1 ; encoding: [0x01,0xb6,0x0a,0x7e]70// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU71 72v_cvt_f32_bf16 v5, vcc_lo73// GFX950: v_cvt_f32_bf16_e32 v5, vcc_lo ; encoding: [0x6a,0xb6,0x0a,0x7e]74// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU75 76v_cvt_f32_bf16 v5, vcc_hi77// GFX950: v_cvt_f32_bf16_e32 v5, vcc_hi ; encoding: [0x6b,0xb6,0x0a,0x7e]78// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU79 80v_cvt_f32_bf16 v5, ttmp1581// GFX950: v_cvt_f32_bf16_e32 v5, ttmp15 ; encoding: [0x7b,0xb6,0x0a,0x7e]82// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU83 84v_cvt_f32_bf16 v5, m085// GFX950: v_cvt_f32_bf16_e32 v5, m0 ; encoding: [0x7c,0xb6,0x0a,0x7e]86// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU87 88v_cvt_f32_bf16 v5, exec_lo89// GFX950: v_cvt_f32_bf16_e32 v5, exec_lo ; encoding: [0x7e,0xb6,0x0a,0x7e]90// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU91 92v_cvt_f32_bf16 v5, exec_hi93// GFX950: v_cvt_f32_bf16_e32 v5, exec_hi ; encoding: [0x7f,0xb6,0x0a,0x7e]94// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU95 96v_cvt_f32_bf16 v5, -197// GFX950: v_cvt_f32_bf16_e32 v5, -1 ; encoding: [0xc1,0xb6,0x0a,0x7e]98// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU99 100v_cvt_f32_bf16 v5, 0.5101// GFX950: v_cvt_f32_bf16_e32 v5, 0.5 ; encoding: [0xf0,0xb6,0x0a,0x7e]102// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU103 104v_cvt_f32_bf16 v5, src_scc105// GFX950: v_cvt_f32_bf16_e32 v5, src_scc ; encoding: [0xfd,0xb6,0x0a,0x7e]106// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU107 108v_cvt_f32_bf16 v127, 0x8000109// GFX950: v_cvt_f32_bf16_e32 v127, 0x8000 ; encoding: [0xff,0xb6,0xfe,0x7e,0x00,0x80,0x00,0x00]110// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU111 112v_cvt_f32_bf16 v5, -v1113// GFX950: v_cvt_f32_bf16_e64 v5, -v1 ; encoding: [0x05,0x00,0x9b,0xd1,0x01,0x01,0x00,0x20]114// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU115 116v_cvt_f32_bf16 v5, |v1|117// GFX950: v_cvt_f32_bf16_e64 v5, |v1| ; encoding: [0x05,0x01,0x9b,0xd1,0x01,0x01,0x00,0x00]118// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU119 120v_cvt_f32_bf16 v5, -|v1|121// GFX950: v_cvt_f32_bf16_e64 v5, -|v1| ; encoding: [0x05,0x01,0x9b,0xd1,0x01,0x01,0x00,0x20]122// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU123 124v_cvt_f32_bf16 v5, v1 clamp mul:2125// GFX950: v_cvt_f32_bf16_e64 v5, v1 clamp mul:2 ; encoding: [0x05,0x80,0x9b,0xd1,0x01,0x01,0x00,0x08]126// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU127 128v_cvt_f32_bf16_e64 v5, v1 clamp div:2129// GFX950: v_cvt_f32_bf16_e64 v5, v1 clamp div:2 ; encoding: [0x05,0x80,0x9b,0xd1,0x01,0x01,0x00,0x18]130// GFX942-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU131