Home | History | Annotate | Download | only in PowerPC
      1 
      2 # RUN: llvm-mc -triple powerpc64-unknown-unknown --show-encoding %s | FileCheck %s
      3 
      4 # Cache management instruction
      5 
      6 # CHECK: icbi 2, 3                       # encoding: [0x7c,0x02,0x1f,0xac]
      7          icbi 2, 3
      8 
      9 # FIXME: dcbt 2, 3, 10
     10 # CHECK: dcbt 2, 3                       # encoding: [0x7c,0x02,0x1a,0x2c]
     11          dcbt 2, 3
     12 # FIXME: dcbtst 2, 3, 10
     13 # CHECK: dcbtst 2, 3                     # encoding: [0x7c,0x02,0x19,0xec]
     14          dcbtst 2, 3
     15 # CHECK: dcbz 2, 3                       # encoding: [0x7c,0x02,0x1f,0xec]
     16          dcbz 2, 3
     17 # CHECK: dcbst 2, 3                      # encoding: [0x7c,0x02,0x18,0x6c]
     18          dcbst 2, 3
     19 # FIXME: dcbf 2, 3, 1
     20 
     21 # Synchronization instructions
     22 
     23 # CHECK: isync                           # encoding: [0x4c,0x00,0x01,0x2c]
     24          isync
     25 
     26 # FIXME: lbarx 2, 3, 4, 1
     27 # FIXME: lharx 2, 3, 4, 1
     28 # FIXME: lwarx 2, 3, 4, 1
     29 # FIXME: ldarx 2, 3, 4, 1
     30 
     31 # FIXME: stbcx. 2, 3, 4
     32 # FIXME: sthcx. 2, 3, 4
     33 # CHECK: stwcx. 2, 3, 4                  # encoding: [0x7c,0x43,0x21,0x2d]
     34          stwcx. 2, 3, 4
     35 # CHECK: stdcx. 2, 3, 4                  # encoding: [0x7c,0x43,0x21,0xad]
     36          stdcx. 2, 3, 4
     37 
     38 # CHECK: sync 2                          # encoding: [0x7c,0x40,0x04,0xac]
     39          sync 2
     40 # CHECK: eieio                           # encoding: [0x7c,0x00,0x06,0xac]
     41          eieio
     42 # CHECK: wait 2                          # encoding: [0x7c,0x40,0x00,0x7c]
     43          wait 2
     44 
     45 # Extended mnemonics
     46 
     47 # CHECK: dcbf 2, 3                       # encoding: [0x7c,0x02,0x18,0xac]
     48          dcbf 2, 3
     49 # FIXME: dcbfl 2, 3
     50 
     51 # FIXME: lbarx 2, 3, 4
     52 # FIXME: lharx 2, 3, 4
     53 # CHECK: lwarx 2, 3, 4                   # encoding: [0x7c,0x43,0x20,0x28]
     54          lwarx 2, 3, 4
     55 # CHECK: ldarx 2, 3, 4                   # encoding: [0x7c,0x43,0x20,0xa8]
     56          ldarx 2, 3, 4
     57 
     58 # CHECK: sync 0                          # encoding: [0x7c,0x00,0x04,0xac]
     59          sync
     60 # CHECK: sync 0                          # encoding: [0x7c,0x00,0x04,0xac]
     61          msync
     62 # CHECK: sync 1                          # encoding: [0x7c,0x20,0x04,0xac]
     63          lwsync
     64 # CHECK: sync 2                          # encoding: [0x7c,0x40,0x04,0xac]
     65          ptesync
     66 
     67 # CHECK: wait 0                          # encoding: [0x7c,0x00,0x00,0x7c]
     68          wait
     69 # CHECK: wait 1                          # encoding: [0x7c,0x20,0x00,0x7c]
     70          waitrsv
     71 # CHECK: wait 2                          # encoding: [0x7c,0x40,0x00,0x7c]
     72          waitimpl
     73 
     74 # Time base instructions
     75 
     76 # CHECK: mftb 2, 123                     # encoding: [0x7c,0x5b,0x1a,0xe6]
     77          mftb 2, 123
     78 # CHECK: mftb 2, 268                     # encoding: [0x7c,0x4c,0x42,0xe6]
     79          mftb 2
     80 # CHECK: mftb 2, 269                     # encoding: [0x7c,0x4d,0x42,0xe6]
     81          mftbu 2
     82 
     83