Home | History | Annotate | Download | only in AMDGPU
      1 # RUN: llvm-mc -arch=amdgcn -mcpu=tonga -disassemble -show-encoding < %s | FileCheck %s -check-prefix=VI
      2 
      3 # VI:   s_and_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x86]
      4 0x04 0x06 0x02 0x86
      5 
      6 # VI:   s_and_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x86]
      7 0x04 0x06 0x82 0x86
      8 
      9 # VI:   s_or_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x87]
     10 0x04 0x06 0x02 0x87
     11 
     12 # VI:   s_or_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x87]
     13 0x04 0x06 0x82 0x87
     14 
     15 # VI:   s_xor_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x88]
     16 0x04 0x06 0x02 0x88
     17 
     18 # VI:   s_xor_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x88]
     19 0x04 0x06 0x82 0x88
     20 
     21 # VI:   s_andn2_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x89]
     22 0x04 0x06 0x02 0x89
     23 
     24 # VI:   s_andn2_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x89]
     25 0x04 0x06 0x82 0x89
     26 
     27 # VI:   s_orn2_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x8a]
     28 0x04 0x06 0x02 0x8a
     29 
     30 # VI:   s_orn2_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x8a]
     31 0x04 0x06 0x82 0x8a
     32 
     33 # VI:   s_nand_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x8b]
     34 0x04 0x06 0x02 0x8b
     35 
     36 # VI:   s_nand_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x8b]
     37 0x04 0x06 0x82 0x8b
     38 
     39 # VI:   s_nor_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x8c]
     40 0x04 0x06 0x02 0x8c
     41 
     42 # VI:   s_nor_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x8c]
     43 0x04 0x06 0x82 0x8c
     44 
     45 # VI:   s_xnor_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x8d]
     46 0x04 0x06 0x02 0x8d
     47 
     48 # VI:   s_xnor_b64 s[2:3], s[4:5], s[6:7] ; encoding: [0x04,0x06,0x82,0x8d]
     49 0x04 0x06 0x82 0x8d
     50 
     51 # VI:   s_lshl_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x8e]
     52 0x04 0x06 0x02 0x8e
     53 
     54 # VI:   s_lshl_b64 s[2:3], s[4:5], s6 ; encoding: [0x04,0x06,0x82,0x8e]
     55 0x04 0x06 0x82 0x8e
     56 
     57 # VI:   s_lshr_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x8f]
     58 0x04 0x06 0x02 0x8f
     59 
     60 # VI:   s_lshr_b64 s[2:3], s[4:5], s6 ; encoding: [0x04,0x06,0x82,0x8f]
     61 0x04 0x06 0x82 0x8f
     62 
     63 # VI:   s_ashr_i32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x90]
     64 0x04 0x06 0x02 0x90
     65 
     66 # VI:   s_ashr_i64 s[2:3], s[4:5], s6 ; encoding: [0x04,0x06,0x82,0x90]
     67 0x04 0x06 0x82 0x90
     68 
     69 # VI:   s_bfm_b32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x91]
     70 0x04 0x06 0x02 0x91
     71 
     72 # VI:   s_bfm_b64 s[2:3], s4, s6 ; encoding: [0x04,0x06,0x82,0x91]
     73 0x04 0x06 0x82 0x91
     74 
     75 # VI:   s_mul_i32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x92]
     76 0x04 0x06 0x02 0x92
     77 
     78 # VI:   s_bfe_u32 s2, s4, s6 ; encoding: [0x04,0x06,0x82,0x92]
     79 0x04 0x06 0x82 0x92
     80 
     81 # VI:   s_bfe_i32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x93]
     82 0x04 0x06 0x02 0x93
     83 
     84 # VI:   s_bfe_u64 s[2:3], s[4:5], s6 ; encoding: [0x04,0x06,0x82,0x93]
     85 0x04 0x06 0x82 0x93
     86 
     87 # VI:   s_bfe_i64 s[2:3], s[4:5], s6 ; encoding: [0x04,0x06,0x02,0x94]
     88 0x04 0x06 0x02 0x94
     89 
     90 # VI:   s_cbranch_g_fork s[4:5], s[6:7] ; encoding: [0x04,0x06,0x80,0x94]
     91 0x04 0x06 0x80 0x94
     92 
     93 # VI:   s_absdiff_i32 s2, s4, s6 ; encoding: [0x04,0x06,0x02,0x95]
     94 0x04 0x06 0x02 0x95
     95