1# RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding -mcpu=mips32r2 | \ 2# RUN: FileCheck -check-prefix=CHECK32 %s 3# RUN: llvm-mc %s -triple=mips64el-unknown-linux -show-encoding -mcpu=mips64r2 | \ 4# RUN: FileCheck -check-prefix=CHECK64 %s 5# XFAIL: * 6 7# Check that the assembler can handle the documented syntax 8# for memory-management instructions. 9#------------------------------------------------------------------------------ 10# TLB instructions 11#------------------------------------------------------------------------------ 12# CHECK32: tlbwi # encoding: [0x02,0x00,0x00,0x42] 13# CHECK32: tlbwr # encoding: [0x06,0x00,0x00,0x42] 14# CHECK32: tlbp # encoding: [0x08,0x00,0x00,0x42] 15# CHECK32: cache 0x01, 0($t0) # encoding: [0x00,0x00,0x01,0xbd] 16 17# CHECK64: tlbwi # encoding: [0x02,0x00,0x00,0x42] 18# CHECK64: tlbwr # encoding: [0x06,0x00,0x00,0x42] 19# CHECK64: tlbp # encoding: [0x08,0x00,0x00,0x42] 20# CHECK64: cache 0x01, 0($t0) # encoding: [0x00,0x00,0x01,0xbd] 21 22.set noreorder 23 24 tlbwi 25 tlbwr 26 tlbp 27 28 cache 0x01, 0($t0) 29 30end_of_code: 31