Home | History | Annotate | Download | only in Mips
      1 # RUN: llvm-mc %s -triple=mips64-unknown-freebsd -show-encoding | FileCheck %s
      2 
      3 # Check that the register names are mapped to their correct numbers for n64
      4 # Second byte of addiu with $zero at rt contains the number of the source
      5 # register.
      6 
      7 # CHECK: encoding: [0x64,0x00,0x00,0x00]
      8 # CHECK: encoding: [0x64,0x01,0x00,0x00]
      9 # CHECK: encoding: [0x64,0x02,0x00,0x00]
     10 # CHECK: encoding: [0x64,0x03,0x00,0x00]
     11 # CHECK: encoding: [0x64,0x04,0x00,0x00]
     12 # CHECK: encoding: [0x64,0x05,0x00,0x00]
     13 # CHECK: encoding: [0x64,0x06,0x00,0x00]
     14 # CHECK: encoding: [0x64,0x07,0x00,0x00]
     15 # CHECK: encoding: [0x64,0x08,0x00,0x00]
     16 # CHECK: encoding: [0x64,0x09,0x00,0x00]
     17 # CHECK: encoding: [0x64,0x0a,0x00,0x00]
     18 # CHECK: encoding: [0x64,0x0b,0x00,0x00]
     19 # CHECK: encoding: [0x64,0x0c,0x00,0x00]
     20 # CHECK: encoding: [0x64,0x0d,0x00,0x00]
     21 # CHECK: encoding: [0x64,0x0e,0x00,0x00]
     22 # CHECK: encoding: [0x64,0x0f,0x00,0x00]
     23 # CHECK: encoding: [0x64,0x10,0x00,0x00]
     24 # CHECK: encoding: [0x64,0x11,0x00,0x00]
     25 # CHECK: encoding: [0x64,0x12,0x00,0x00]
     26 # CHECK: encoding: [0x64,0x13,0x00,0x00]
     27 # CHECK: encoding: [0x64,0x14,0x00,0x00]
     28 # CHECK: encoding: [0x64,0x15,0x00,0x00]
     29 # CHECK: encoding: [0x64,0x16,0x00,0x00]
     30 # CHECK: encoding: [0x64,0x17,0x00,0x00]
     31 # CHECK: encoding: [0x64,0x18,0x00,0x00]
     32 # CHECK: encoding: [0x64,0x19,0x00,0x00]
     33 # CHECK: encoding: [0x64,0x1a,0x00,0x00]
     34 # CHECK: encoding: [0x64,0x1b,0x00,0x00]
     35 # CHECK: encoding: [0x64,0x1c,0x00,0x00]
     36 # CHECK: encoding: [0x64,0x1d,0x00,0x00]
     37 # CHECK: encoding: [0x64,0x1e,0x00,0x00]
     38 # CHECK: encoding: [0x64,0x1f,0x00,0x00]
     39 daddiu	$zero, $zero, 0
     40 daddiu	$at, $zero, 0
     41 daddiu	$v0, $zero, 0
     42 daddiu	$v1, $zero, 0
     43 daddiu	$a0, $zero, 0
     44 daddiu	$a1, $zero, 0
     45 daddiu	$a2, $zero, 0
     46 daddiu	$a3, $zero, 0
     47 daddiu	$a4, $zero, 0
     48 daddiu	$a5, $zero, 0
     49 daddiu	$a6, $zero, 0
     50 daddiu	$a7, $zero, 0
     51 daddiu	$t4, $zero, 0
     52 daddiu	$t5, $zero, 0
     53 daddiu	$t6, $zero, 0
     54 daddiu	$t7, $zero, 0
     55 daddiu	$s0, $zero, 0
     56 daddiu	$s1, $zero, 0
     57 daddiu	$s2, $zero, 0
     58 daddiu	$s3, $zero, 0
     59 daddiu	$s4, $zero, 0
     60 daddiu	$s5, $zero, 0
     61 daddiu	$s6, $zero, 0
     62 daddiu	$s7, $zero, 0
     63 daddiu	$t8, $zero, 0
     64 daddiu	$t9, $zero, 0
     65 daddiu	$kt0, $zero, 0
     66 daddiu	$kt1, $zero, 0
     67 daddiu	$gp, $zero, 0
     68 daddiu	$sp, $zero, 0
     69 daddiu	$s8, $zero, 0
     70 daddiu	$ra, $zero, 0
     71