2014-03-24 18:16:09 +00:00
|
|
|
# RUN: llvm-mc -triple powerpc64-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-BE %s
|
|
|
|
# RUN: llvm-mc -triple powerpc64le-unknown-unknown --show-encoding %s | FileCheck -check-prefix=CHECK-LE %s
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mtmsr 4, 0 # encoding: [0x7c,0x80,0x01,0x24]
|
|
|
|
# CHECK-LE: mtmsr 4, 0 # encoding: [0x24,0x01,0x80,0x7c]
|
|
|
|
mtmsr %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mtmsr 4, 1 # encoding: [0x7c,0x81,0x01,0x24]
|
|
|
|
# CHECK-LE: mtmsr 4, 1 # encoding: [0x24,0x01,0x81,0x7c]
|
|
|
|
mtmsr %r4, 1
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mfmsr 4 # encoding: [0x7c,0x80,0x00,0xa6]
|
|
|
|
# CHECK-LE: mfmsr 4 # encoding: [0xa6,0x00,0x80,0x7c]
|
|
|
|
mfmsr %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mtmsrd 4, 0 # encoding: [0x7c,0x80,0x01,0x64]
|
|
|
|
# CHECK-LE: mtmsrd 4, 0 # encoding: [0x64,0x01,0x80,0x7c]
|
|
|
|
mtmsrd %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mtmsrd 4, 1 # encoding: [0x7c,0x81,0x01,0x64]
|
|
|
|
# CHECK-LE: mtmsrd 4, 1 # encoding: [0x64,0x01,0x81,0x7c]
|
|
|
|
mtmsrd %r4, 1
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-07-30 09:24:37 +00:00
|
|
|
# CHECK-BE: mfspr 4, 260 # encoding: [0x7c,0x84,0x42,0xa6]
|
|
|
|
# CHECK-LE: mfspr 4, 260 # encoding: [0xa6,0x42,0x84,0x7c]
|
|
|
|
mfsprg %r4, 4
|
|
|
|
|
|
|
|
# CHECK-BE: mfspr 4, 261 # encoding: [0x7c,0x85,0x42,0xa6]
|
|
|
|
# CHECK-LE: mfspr 4, 261 # encoding: [0xa6,0x42,0x85,0x7c]
|
|
|
|
mfsprg %r4, 5
|
|
|
|
|
|
|
|
# CHECK-BE: mfspr 4, 262 # encoding: [0x7c,0x86,0x42,0xa6]
|
|
|
|
# CHECK-LE: mfspr 4, 262 # encoding: [0xa6,0x42,0x86,0x7c]
|
|
|
|
mfsprg %r4, 6
|
|
|
|
|
|
|
|
# CHECK-BE: mfspr 4, 263 # encoding: [0x7c,0x87,0x42,0xa6]
|
|
|
|
# CHECK-LE: mfspr 4, 263 # encoding: [0xa6,0x42,0x87,0x7c]
|
|
|
|
mfsprg %r4, 7
|
|
|
|
|
|
|
|
# CHECK-BE: mfspr 2, 260 # encoding: [0x7c,0x44,0x42,0xa6]
|
|
|
|
# CHECK-LE: mfspr 2, 260 # encoding: [0xa6,0x42,0x44,0x7c]
|
|
|
|
mfsprg4 %r2
|
|
|
|
# CHECK-BE: mfspr 2, 261 # encoding: [0x7c,0x45,0x42,0xa6]
|
|
|
|
# CHECK-LE: mfspr 2, 261 # encoding: [0xa6,0x42,0x45,0x7c]
|
|
|
|
mfsprg5 %r2
|
|
|
|
# CHECK-BE: mfspr 2, 262 # encoding: [0x7c,0x46,0x42,0xa6]
|
|
|
|
# CHECK-LE: mfspr 2, 262 # encoding: [0xa6,0x42,0x46,0x7c]
|
|
|
|
mfsprg6 %r2
|
|
|
|
# CHECK-BE: mfspr 2, 263 # encoding: [0x7c,0x47,0x42,0xa6]
|
|
|
|
# CHECK-LE: mfspr 2, 263 # encoding: [0xa6,0x42,0x47,0x7c]
|
|
|
|
mfsprg7 %r2
|
|
|
|
|
|
|
|
# NOT-CHECK-BE: mtspr 260, 4 # encoding: [0x7c,0x90,0x43,0xa6]
|
|
|
|
# NOT-CHECK-LE: mtspr 260, 4 # encoding: [0xa6,0x43,0x90,0x7c]
|
|
|
|
mtsprg 4, %r4
|
|
|
|
|
|
|
|
# NOT-CHECK-BE: mtspr 261, 4 # encoding: [0x7c,0x91,0x43,0xa6]
|
|
|
|
# NOT-CHECK-LE: mtspr 261, 4 # encoding: [0xa6,0x43,0x91,0x7c]
|
|
|
|
mtsprg 5, %r4
|
|
|
|
|
|
|
|
# NOT-CHECK-BE: mtspr 262, 4 # encoding: [0x7c,0x92,0x43,0xa6]
|
|
|
|
# NOT-CHECK-LE: mtspr 262, 4 # encoding: [0xa6,0x43,0x92,0x7c]
|
|
|
|
mtsprg 6, %r4
|
|
|
|
|
|
|
|
# NOT-CHECK-BE: mtspr 263, 4 # encoding: [0x7c,0x93,0x43,0xa6]
|
|
|
|
# NOT-CHECK-LE: mtspr 263, 4 # encoding: [0xa6,0x43,0x93,0x7c]
|
|
|
|
mtsprg 7, %r4
|
|
|
|
|
|
|
|
# CHECK-BE: mtspr 260, 4 # encoding: [0x7c,0x84,0x43,0xa6]
|
|
|
|
# CHECK-LE: mtspr 260, 4 # encoding: [0xa6,0x43,0x84,0x7c]
|
|
|
|
mtsprg4 %r4
|
|
|
|
|
|
|
|
# CHECK-BE: mtspr 261, 4 # encoding: [0x7c,0x85,0x43,0xa6]
|
|
|
|
# CHECK-LE: mtspr 261, 4 # encoding: [0xa6,0x43,0x85,0x7c]
|
|
|
|
mtsprg5 %r4
|
|
|
|
|
|
|
|
# CHECK-BE: mtspr 262, 4 # encoding: [0x7c,0x86,0x43,0xa6]
|
|
|
|
# CHECK-LE: mtspr 262, 4 # encoding: [0xa6,0x43,0x86,0x7c]
|
|
|
|
mtsprg6 %r4
|
|
|
|
|
|
|
|
# CHECK-BE: mtspr 263, 4 # encoding: [0x7c,0x87,0x43,0xa6]
|
|
|
|
# CHECK-LE: mtspr 263, 4 # encoding: [0xa6,0x43,0x87,0x7c]
|
|
|
|
mtsprg7 %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mtspr 280, 4 # encoding: [0x7c,0x98,0x43,0xa6]
|
|
|
|
# CHECK-LE: mtspr 280, 4 # encoding: [0xa6,0x43,0x98,0x7c]
|
|
|
|
mtasr %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mfspr 4, 22 # encoding: [0x7c,0x96,0x02,0xa6]
|
|
|
|
# CHECK-LE: mfspr 4, 22 # encoding: [0xa6,0x02,0x96,0x7c]
|
|
|
|
mfdec %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mtspr 22, 4 # encoding: [0x7c,0x96,0x03,0xa6]
|
|
|
|
# CHECK-LE: mtspr 22, 4 # encoding: [0xa6,0x03,0x96,0x7c]
|
|
|
|
mtdec %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mfspr 4, 287 # encoding: [0x7c,0x9f,0x42,0xa6]
|
|
|
|
# CHECK-LE: mfspr 4, 287 # encoding: [0xa6,0x42,0x9f,0x7c]
|
|
|
|
mfpvr %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mfspr 4, 25 # encoding: [0x7c,0x99,0x02,0xa6]
|
|
|
|
# CHECK-LE: mfspr 4, 25 # encoding: [0xa6,0x02,0x99,0x7c]
|
|
|
|
mfsdr1 %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mtspr 25, 4 # encoding: [0x7c,0x99,0x03,0xa6]
|
|
|
|
# CHECK-LE: mtspr 25, 4 # encoding: [0xa6,0x03,0x99,0x7c]
|
|
|
|
mtsdr1 %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mfspr 4, 26 # encoding: [0x7c,0x9a,0x02,0xa6]
|
|
|
|
# CHECK-LE: mfspr 4, 26 # encoding: [0xa6,0x02,0x9a,0x7c]
|
|
|
|
mfsrr0 %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mtspr 26, 4 # encoding: [0x7c,0x9a,0x03,0xa6]
|
|
|
|
# CHECK-LE: mtspr 26, 4 # encoding: [0xa6,0x03,0x9a,0x7c]
|
|
|
|
mtsrr0 %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mfspr 4, 27 # encoding: [0x7c,0x9b,0x02,0xa6]
|
|
|
|
# CHECK-LE: mfspr 4, 27 # encoding: [0xa6,0x02,0x9b,0x7c]
|
|
|
|
mfsrr1 %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: mtspr 27, 4 # encoding: [0x7c,0x9b,0x03,0xa6]
|
|
|
|
# CHECK-LE: mtspr 27, 4 # encoding: [0xa6,0x03,0x9b,0x7c]
|
|
|
|
mtsrr1 %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: slbie 4 # encoding: [0x7c,0x00,0x23,0x64]
|
|
|
|
# CHECK-LE: slbie 4 # encoding: [0x64,0x23,0x00,0x7c]
|
|
|
|
slbie %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: slbmte 4, 5 # encoding: [0x7c,0x80,0x2b,0x24]
|
|
|
|
# CHECK-LE: slbmte 4, 5 # encoding: [0x24,0x2b,0x80,0x7c]
|
|
|
|
slbmte %r4, %r5
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: slbmfee 4, 5 # encoding: [0x7c,0x80,0x2f,0x26]
|
|
|
|
# CHECK-LE: slbmfee 4, 5 # encoding: [0x26,0x2f,0x80,0x7c]
|
|
|
|
slbmfee %r4, %r5
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: slbia # encoding: [0x7c,0x00,0x03,0xe4]
|
|
|
|
# CHECK-LE: slbia # encoding: [0xe4,0x03,0x00,0x7c]
|
|
|
|
slbia
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: tlbsync # encoding: [0x7c,0x00,0x04,0x6c]
|
|
|
|
# CHECK-LE: tlbsync # encoding: [0x6c,0x04,0x00,0x7c]
|
|
|
|
tlbsync
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: tlbiel 4 # encoding: [0x7c,0x00,0x22,0x24]
|
|
|
|
# CHECK-LE: tlbiel 4 # encoding: [0x24,0x22,0x00,0x7c]
|
|
|
|
tlbiel %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: tlbie 4,0 # encoding: [0x7c,0x00,0x22,0x64]
|
|
|
|
# CHECK-LE: tlbie 4,0 # encoding: [0x64,0x22,0x00,0x7c]
|
|
|
|
tlbie %r4, 0
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-03-24 18:16:09 +00:00
|
|
|
# CHECK-BE: tlbie 4,0 # encoding: [0x7c,0x00,0x22,0x64]
|
|
|
|
# CHECK-LE: tlbie 4,0 # encoding: [0x64,0x22,0x00,0x7c]
|
|
|
|
tlbie %r4
|
2013-09-12 17:50:54 +00:00
|
|
|
|
2014-07-29 15:49:09 +00:00
|
|
|
# CHECK-BE: rfi # encoding: [0x4c,0x00,0x00,0x64]
|
|
|
|
# CHECK-LE: rfi # encoding: [0x64,0x00,0x00,0x4c]
|
|
|
|
rfi
|
2014-07-29 23:45:20 +00:00
|
|
|
# CHECK-BE: rfci # encoding: [0x4c,0x00,0x00,0x66]
|
|
|
|
# CHECK-LE: rfci # encoding: [0x66,0x00,0x00,0x4c]
|
|
|
|
rfci
|
2014-07-30 10:32:51 +00:00
|
|
|
|
|
|
|
# CHECK-BE: wrtee 12 # encoding: [0x7d,0x80,0x01,0x06]
|
|
|
|
# CHECK-LE: wrtee 12 # encoding: [0x06,0x01,0x80,0x7d]
|
|
|
|
wrtee %r12
|
|
|
|
|
|
|
|
# CHECK-BE: wrteei 0 # encoding: [0x7c,0x00,0x01,0x46]
|
|
|
|
# CHECK-LE: wrteei 0 # encoding: [0x46,0x01,0x00,0x7c]
|
|
|
|
wrteei 0
|
|
|
|
|
|
|
|
# CHECK-BE: wrteei 1 # encoding: [0x7c,0x00,0x81,0x46]
|
|
|
|
# CHECK-LE: wrteei 1 # encoding: [0x46,0x81,0x00,0x7c]
|
|
|
|
wrteei 1
|