66 lines · plain
1# RUN: llvm-mc %s -triple=riscv64 -mattr=+xmipslsp,+xmipscmov,+xmipscbop,+xmipsexectl -M no-aliases -show-encoding \2# RUN: | FileCheck -check-prefixes=CHECK-INST,CHECK-ENC %s3# RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+xmipslsp,+xmipscmov,+xmipscbop,+xmipsexectl < %s \4# RUN: | llvm-objdump --mattr=+xmipslsp,+xmipscmov,+xmipscbop,+xmipsexectl -M no-aliases -d - \5# RUN: | FileCheck -check-prefix=CHECK-DIS %s6 7# CHECK-INST: mips.pause8# CHECK-ENC: encoding: [0x13,0x10,0x50,0x00]9mips.pause10 11# CHECK-DIS: mips.pause12 13# CHECK-INST: mips.ehb14# CHECK-ENC: encoding: [0x13,0x10,0x30,0x00]15mips.ehb16 17# CHECK-DIS: mips.ehb18 19# CHECK-INST: mips.ihb20# CHECK-ENC: encoding: [0x13,0x10,0x10,0x00]21mips.ihb22 23# CHECK-DIS: mips.ihb24 25# CHECK-INST: mips.pref 8, 511(a0)26# CHECK-ENC: encoding: [0x0b,0x04,0xf5,0x1f]27mips.pref 8, 511(a0)28 29# CHECK-DIS: mips.pref 0x8, 0x1ff(a0)30 31# CHECK-INST: mips.pref 9, 0(a0)32# CHECK-ENC: encoding: [0x8b,0x04,0x05,0x00]33mips.pref 9, 0(a0)34 35# CHECK-DIS: mips.pref 0x9, 0x0(a0)36 37# CHECK-INST: mips.ccmov s0, s1, s2, s338# CHECK-ENC: encoding: [0x0b,0x34,0x99,0x9e]39mips.ccmov s0, s1, s2, s340 41# CHECK-DIS: mips.ccmov s0, s1, s2, s342 43# CHECK-INST: mips.swp s3, s2, 0(sp)44# CHECK-ENC: encoding: [0x8b,0x50,0x31,0x91]45mips.swp s3, s2, 0(sp)46 47# CHECK-DIS: mips.swp s3, s2, 0x0(sp)48 49# CHECK-INST: mips.sdp s5, s6, 16(s7)50# CHECK-ENC: encoding: [0x0b,0xd8,0x5b,0xb1]51mips.sdp s5, s6, 16(s7)52 53# CHECK-DIS: mips.sdp s5, s6, 0x10(s7)54 55# CHECK-INST: mips.ldp s1, s2, 8(sp)56# CHECK-ENC: encoding: [0x8b,0x44,0x81,0x90]57mips.ldp s1, s2, 8(sp)58 59# CHECK-DIS: mips.ldp s1, s2, 0x8(sp)60 61# CHECK-INST: mips.lwp a0, a1, 20(a2)62# CHECK-ENC: encoding: [0x0b,0x45,0x56,0x59]63mips.lwp x10, x11, 20(x12)64 65# CHECK-DIS: mips.lwp a0, a1, 0x14(a2)66