diff options
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/Disassembler/Mips/micromips.txt | 12 | ||||
-rw-r--r-- | test/MC/Disassembler/Mips/micromips_le.txt | 12 | ||||
-rw-r--r-- | test/MC/Mips/micromips-movcond-instructions.s | 26 |
3 files changed, 50 insertions, 0 deletions
diff --git a/test/MC/Disassembler/Mips/micromips.txt b/test/MC/Disassembler/Mips/micromips.txt index 0b0c7a0..683c7a0 100644 --- a/test/MC/Disassembler/Mips/micromips.txt +++ b/test/MC/Disassembler/Mips/micromips.txt @@ -147,3 +147,15 @@ # CHECK: swr $4, 16($5) 0x60 0x85 0x90 0x10 + +# CHECK: movz $9, $6, $7 +0x00 0xe6 0x48 0x58 + +# CHECK: movn $9, $6, $7 +0x00 0xe6 0x48 0x18 + +# CHECK: movt $9, $6, $fcc0 +0x55 0x26 0x09 0x7b + +# CHECK: movf $9, $6, $fcc0 +0x55 0x26 0x01 0x7b diff --git a/test/MC/Disassembler/Mips/micromips_le.txt b/test/MC/Disassembler/Mips/micromips_le.txt index bcefeb4..fb183cd 100644 --- a/test/MC/Disassembler/Mips/micromips_le.txt +++ b/test/MC/Disassembler/Mips/micromips_le.txt @@ -147,3 +147,15 @@ # CHECK: swr $4, 16($5) 0x85 0x60 0x10 0x90 + +# CHECK: movz $9, $6, $7 +0xe6 0x00 0x58 0x48 + +# CHECK: movn $9, $6, $7 +0xe6 0x00 0x18 0x48 + +# CHECK: movt $9, $6, $fcc0 +0x26 0x55 0x7b 0x09 + +# CHECK: movf $9, $6, $fcc0 +0x26 0x55 0x7b 0x01 diff --git a/test/MC/Mips/micromips-movcond-instructions.s b/test/MC/Mips/micromips-movcond-instructions.s new file mode 100644 index 0000000..5da8702 --- /dev/null +++ b/test/MC/Mips/micromips-movcond-instructions.s @@ -0,0 +1,26 @@ +# RUN: llvm-mc %s -triple=mipsel -show-encoding -mattr=micromips \ +# RUN: | FileCheck -check-prefix=CHECK-EL %s +# RUN: llvm-mc %s -triple=mips -show-encoding -mattr=micromips \ +# RUN: | FileCheck -check-prefix=CHECK-EB %s +# Check that the assembler can handle the documented syntax +# for move conditional instructions. +#------------------------------------------------------------------------------ +# Move Conditional +#------------------------------------------------------------------------------ +# Little endian +#------------------------------------------------------------------------------ +# CHECK-EL: movz $9, $6, $7 # encoding: [0xe6,0x00,0x58,0x48] +# CHECK-EL: movn $9, $6, $7 # encoding: [0xe6,0x00,0x18,0x48] +# CHECK-EL: movt $9, $6, $fcc0 # encoding: [0x26,0x55,0x7b,0x09] +# CHECK-EL: movf $9, $6, $fcc0 # encoding: [0x26,0x55,0x7b,0x01] +#------------------------------------------------------------------------------ +# Big endian +#------------------------------------------------------------------------------ +# CHECK-EB: movz $9, $6, $7 # encoding: [0x00,0xe6,0x48,0x58] +# CHECK-EB: movn $9, $6, $7 # encoding: [0x00,0xe6,0x48,0x18] +# CHECK-EB: movt $9, $6, $fcc0 # encoding: [0x55,0x26,0x09,0x7b] +# CHECK-EB: movf $9, $6, $fcc0 # encoding: [0x55,0x26,0x01,0x7b] + movz $9, $6, $7 + movn $9, $6, $7 + movt $9, $6, $fcc0 + movf $9, $6, $fcc0 |