2013-05-03 19:51:09 +00:00
|
|
|
|
|
|
|
# RUN: llvm-mc -triple powerpc64-unknown-unknown --show-encoding %s | FileCheck %s
|
|
|
|
|
|
|
|
# Cache management instruction
|
|
|
|
|
2013-07-01 16:52:55 +00:00
|
|
|
# CHECK: icbi 2, 3 # encoding: [0x7c,0x02,0x1f,0xac]
|
|
|
|
icbi 2, 3
|
2013-05-03 19:51:09 +00:00
|
|
|
|
|
|
|
# FIXME: dcbt 2, 3, 10
|
2013-07-01 16:52:55 +00:00
|
|
|
# CHECK: dcbt 2, 3 # encoding: [0x7c,0x02,0x1a,0x2c]
|
|
|
|
dcbt 2, 3
|
2013-05-03 19:51:09 +00:00
|
|
|
# FIXME: dcbtst 2, 3, 10
|
2013-07-01 16:52:55 +00:00
|
|
|
# CHECK: dcbtst 2, 3 # encoding: [0x7c,0x02,0x19,0xec]
|
|
|
|
dcbtst 2, 3
|
2013-05-03 19:51:09 +00:00
|
|
|
# CHECK: dcbz 2, 3 # encoding: [0x7c,0x02,0x1f,0xec]
|
|
|
|
dcbz 2, 3
|
|
|
|
# CHECK: dcbst 2, 3 # encoding: [0x7c,0x02,0x18,0x6c]
|
|
|
|
dcbst 2, 3
|
|
|
|
# FIXME: dcbf 2, 3, 1
|
|
|
|
|
|
|
|
# Synchronization instructions
|
|
|
|
|
2013-07-01 16:52:55 +00:00
|
|
|
# CHECK: isync # encoding: [0x4c,0x00,0x01,0x2c]
|
|
|
|
isync
|
2013-05-03 19:51:09 +00:00
|
|
|
|
|
|
|
# FIXME: lbarx 2, 3, 4, 1
|
|
|
|
# FIXME: lharx 2, 3, 4, 1
|
|
|
|
# FIXME: lwarx 2, 3, 4, 1
|
|
|
|
# FIXME: ldarx 2, 3, 4, 1
|
|
|
|
|
|
|
|
# FIXME: stbcx. 2, 3, 4
|
|
|
|
# FIXME: sthcx. 2, 3, 4
|
|
|
|
# CHECK: stwcx. 2, 3, 4 # encoding: [0x7c,0x43,0x21,0x2d]
|
|
|
|
stwcx. 2, 3, 4
|
|
|
|
# CHECK: stdcx. 2, 3, 4 # encoding: [0x7c,0x43,0x21,0xad]
|
|
|
|
stdcx. 2, 3, 4
|
|
|
|
|
2013-07-01 16:37:52 +00:00
|
|
|
# CHECK: sync 2 # encoding: [0x7c,0x40,0x04,0xac]
|
|
|
|
sync 2
|
2013-07-01 17:06:26 +00:00
|
|
|
# CHECK: eieio # encoding: [0x7c,0x00,0x06,0xac]
|
|
|
|
eieio
|
2013-07-01 17:21:23 +00:00
|
|
|
# CHECK: wait 2 # encoding: [0x7c,0x40,0x00,0x7c]
|
|
|
|
wait 2
|
2013-05-03 19:51:09 +00:00
|
|
|
|
|
|
|
# Extended mnemonics
|
|
|
|
|
|
|
|
# CHECK: dcbf 2, 3 # encoding: [0x7c,0x02,0x18,0xac]
|
|
|
|
dcbf 2, 3
|
|
|
|
# FIXME: dcbfl 2, 3
|
|
|
|
|
|
|
|
# FIXME: lbarx 2, 3, 4
|
|
|
|
# FIXME: lharx 2, 3, 4
|
|
|
|
# CHECK: lwarx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0x28]
|
|
|
|
lwarx 2, 3, 4
|
|
|
|
# CHECK: ldarx 2, 3, 4 # encoding: [0x7c,0x43,0x20,0xa8]
|
|
|
|
ldarx 2, 3, 4
|
|
|
|
|
2013-07-01 16:37:52 +00:00
|
|
|
# CHECK: sync 0 # encoding: [0x7c,0x00,0x04,0xac]
|
2013-05-03 19:51:09 +00:00
|
|
|
sync
|
2013-07-01 20:39:50 +00:00
|
|
|
# CHECK: sync 0 # encoding: [0x7c,0x00,0x04,0xac]
|
|
|
|
msync
|
2013-07-01 16:37:52 +00:00
|
|
|
# CHECK: sync 1 # encoding: [0x7c,0x20,0x04,0xac]
|
|
|
|
lwsync
|
|
|
|
# CHECK: sync 2 # encoding: [0x7c,0x40,0x04,0xac]
|
|
|
|
ptesync
|
2013-05-03 19:51:09 +00:00
|
|
|
|
2013-07-01 17:21:23 +00:00
|
|
|
# CHECK: wait 0 # encoding: [0x7c,0x00,0x00,0x7c]
|
|
|
|
wait
|
|
|
|
# CHECK: wait 1 # encoding: [0x7c,0x20,0x00,0x7c]
|
|
|
|
waitrsv
|
|
|
|
# CHECK: wait 2 # encoding: [0x7c,0x40,0x00,0x7c]
|
|
|
|
waitimpl
|
2013-05-03 19:51:09 +00:00
|
|
|
|
2013-07-08 15:20:38 +00:00
|
|
|
# Time base instructions
|
|
|
|
|
|
|
|
# CHECK: mftb 2, 123 # encoding: [0x7c,0x5b,0x1a,0xe6]
|
|
|
|
mftb 2, 123
|
|
|
|
# CHECK: mftb 2, 268 # encoding: [0x7c,0x4c,0x42,0xe6]
|
|
|
|
mftb 2
|
|
|
|
# CHECK: mftb 2, 269 # encoding: [0x7c,0x4d,0x42,0xe6]
|
|
|
|
mftbu 2
|
|
|
|
|