1 # RUN: llvm-mc %s -triple=mips-unknown-linux-gnu -show-encoding \
2 # RUN: -mcpu=mips32r5 -mattr=+virt | FileCheck %s
3 # RUN: llvm-mc %s -triple=mips64-unknown-linux-gnu -show-encoding \
4 # RUN: -mcpu=mips64r5 -mattr=+virt | FileCheck %s
6 mfgc0 $
4, $
5 # CHECK: mfgc0 $4, $5, 0 # encoding: [0x40,0x64,0x28,0x00]
7 mfgc0 $
4, $
5, 2 # CHECK: mfgc0 $4, $5, 2 # encoding: [0x40,0x64,0x28,0x02]
8 mtgc0 $
4, $
5 # CHECK: mtgc0 $4, $5, 0 # encoding: [0x40,0x64,0x2a,0x00]
9 mtgc0 $
5, $
4, 2 # CHECK: mtgc0 $5, $4, 2 # encoding: [0x40,0x65,0x22,0x02]
10 mthgc0 $
5, $
4 # CHECK: mthgc0 $5, $4, 0 # encoding: [0x40,0x65,0x26,0x00]
11 mthgc0 $
5, $
4, 1 # CHECK: mthgc0 $5, $4, 1 # encoding: [0x40,0x65,0x26,0x01]
12 mfhgc0 $
5, $
4 # CHECK: mfhgc0 $5, $4, 0 # encoding: [0x40,0x65,0x24,0x00]
13 mfhgc0 $
5, $
4, 7 # CHECK: mfhgc0 $5, $4, 7 # encoding: [0x40,0x65,0x24,0x07]
14 hypcall
# CHECK: hypcall # encoding: [0x42,0x00,0x00,0x28]
15 hypcall
10 # CHECK: hypcall 10 # encoding: [0x42,0x00,0x50,0x28]
16 tlbginv
# CHECK: tlbginv # encoding: [0x42,0x00,0x00,0x0b]
17 tlbginvf
# CHECK: tlbginvf # encoding: [0x42,0x00,0x00,0x0c]
18 tlbgp
# CHECK: tlbgp # encoding: [0x42,0x00,0x00,0x10]
19 tlbgr
# CHECK: tlbgr # encoding: [0x42,0x00,0x00,0x09]
20 tlbgwi
# CHECK: tlbgwi # encoding: [0x42,0x00,0x00,0x0a]
21 tlbgwr
# CHECK: tlbgwr # encoding: [0x42,0x00,0x00,0x0e]