From 1206f1968b0886ab41739aebe113dd4813f3fc46 Mon Sep 17 00:00:00 2001 From: Zoran Jovanovic Date: Wed, 13 Nov 2013 13:15:03 +0000 Subject: Support for microMIPS trap instruction with immediate operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194569 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/Disassembler/Mips/micromips.txt | 18 ++++++++++++++++++ test/MC/Disassembler/Mips/micromips_le.txt | 18 ++++++++++++++++++ test/MC/Mips/micromips-trap-instructions.s | 18 ++++++++++++++++++ 3 files changed, 54 insertions(+) (limited to 'test/MC') diff --git a/test/MC/Disassembler/Mips/micromips.txt b/test/MC/Disassembler/Mips/micromips.txt index e005e67178..b2d0cc02fc 100644 --- a/test/MC/Disassembler/Mips/micromips.txt +++ b/test/MC/Disassembler/Mips/micromips.txt @@ -267,3 +267,21 @@ # CHECK: tne $8, $9, 0 0x01 0x28 0x0c 0x3c + +# CHECK: teqi $9, 17767 +0x41,0xc9,0x45,0x67 + +# CHECK: tgei $9, 17767 +0x41 0x29 0x45 0x67 + +# CHECK: tgeiu $9, 17767 +0x41 0x69 0x45 0x67 + +# CHECK: tlti $9, 17767 +0x41 0x09 0x45 0x67 + +# CHECK: tltiu $9, 17767 +0x41 0x49 0x45 0x67 + +# CHECK: tnei $9, 17767 +0x41 0x89 0x45 0x67 diff --git a/test/MC/Disassembler/Mips/micromips_le.txt b/test/MC/Disassembler/Mips/micromips_le.txt index 0110cbd116..5b2fe30dd0 100644 --- a/test/MC/Disassembler/Mips/micromips_le.txt +++ b/test/MC/Disassembler/Mips/micromips_le.txt @@ -267,3 +267,21 @@ # CHECK: tne $8, $9, 0 0x28 0x01 0x3c 0x0c + +# CHECK: teqi $9, 17767 +0xc9 0x41 0x67 0x45 + +# CHECK: tgei $9, 17767 +0x29 0x41 0x67 0x45 + +# CHECK: tgeiu $9, 17767 +0x69 0x41 0x67 0x45 + +# CHECK: tlti $9, 17767 +0x09 0x41 0x67 0x45 + +# CHECK: tltiu $9, 17767 +0x49 0x41 0x67 0x45 + +# CHECK: tnei $9, 17767 +0x89 0x41 0x67 0x45 diff --git a/test/MC/Mips/micromips-trap-instructions.s b/test/MC/Mips/micromips-trap-instructions.s index a98e02c627..d26b1b2048 100644 --- a/test/MC/Mips/micromips-trap-instructions.s +++ b/test/MC/Mips/micromips-trap-instructions.s @@ -15,6 +15,12 @@ # CHECK-EL: tlt $8, $9, 0 # encoding: [0x28,0x01,0x3c,0x08] # CHECK-EL: tltu $8, $9, 0 # encoding: [0x28,0x01,0x3c,0x0a] # CHECK-EL: tne $8, $9, 0 # encoding: [0x28,0x01,0x3c,0x0c] +# CHECK-EL: teqi $9, 17767 # encoding: [0xc9,0x41,0x67,0x45] +# CHECK-EL: tgei $9, 17767 # encoding: [0x29,0x41,0x67,0x45] +# CHECK-EL: tgeiu $9, 17767 # encoding: [0x69,0x41,0x67,0x45] +# CHECK-EL: tlti $9, 17767 # encoding: [0x09,0x41,0x67,0x45] +# CHECK-EL: tltiu $9, 17767 # encoding: [0x49,0x41,0x67,0x45] +# CHECK-EL: tnei $9, 17767 # encoding: [0x89,0x41,0x67,0x45] #------------------------------------------------------------------------------ # Big endian #------------------------------------------------------------------------------ @@ -24,9 +30,21 @@ # CHECK-EB: tlt $8, $9, 0 # encoding: [0x01,0x28,0x08,0x3c] # CHECK-EB: tltu $8, $9, 0 # encoding: [0x01,0x28,0x0a,0x3c] # CHECK-EB: tne $8, $9, 0 # encoding: [0x01,0x28,0x0c,0x3c] +# CHECK-EB: teqi $9, 17767 # encoding: [0x41,0xc9,0x45,0x67] +# CHECK-EB: tgei $9, 17767 # encoding: [0x41,0x29,0x45,0x67] +# CHECK-EB: tgeiu $9, 17767 # encoding: [0x41,0x69,0x45,0x67] +# CHECK-EB: tlti $9, 17767 # encoding: [0x41,0x09,0x45,0x67] +# CHECK-EB: tltiu $9, 17767 # encoding: [0x41,0x49,0x45,0x67] +# CHECK-EB: tnei $9, 17767 # encoding: [0x41,0x89,0x45,0x67] teq $8, $9, 0 tge $8, $9, 0 tgeu $8, $9, 0 tlt $8, $9, 0 tltu $8, $9, 0 tne $8, $9, 0 + teqi $9, 17767 + tgei $9, 17767 + tgeiu $9, 17767 + tlti $9, 17767 + tltiu $9, 17767 + tnei $9, 17767 -- cgit v1.2.3