1 # RUN: llvm-mc %s -triple=mips64-unknown-freebsd -show-encoding | FileCheck %s 2 # RUN: llvm-mc %s -triple=mips64-unknown-freebsd -show-encoding \ 3 # RUN: -mattr=-n64,+n32 | FileCheck %s 4 5 # Check that the register names are mapped to their correct numbers for n32/n64 6 # Second byte of addiu with $zero at rt contains the number of the source 7 # register. 8 9 .set noat 10 daddiu $zero, $zero, 0 # CHECK: encoding: [0x64,0x00,0x00,0x00] 11 daddiu $at, $zero, 0 # CHECK: encoding: [0x64,0x01,0x00,0x00] 12 daddiu $v0, $zero, 0 # CHECK: encoding: [0x64,0x02,0x00,0x00] 13 daddiu $v1, $zero, 0 # CHECK: encoding: [0x64,0x03,0x00,0x00] 14 daddiu $a0, $zero, 0 # CHECK: encoding: [0x64,0x04,0x00,0x00] 15 daddiu $a1, $zero, 0 # CHECK: encoding: [0x64,0x05,0x00,0x00] 16 daddiu $a2, $zero, 0 # CHECK: encoding: [0x64,0x06,0x00,0x00] 17 daddiu $a3, $zero, 0 # CHECK: encoding: [0x64,0x07,0x00,0x00] 18 daddiu $a4, $zero, 0 # CHECK: encoding: [0x64,0x08,0x00,0x00] 19 daddiu $a5, $zero, 0 # CHECK: encoding: [0x64,0x09,0x00,0x00] 20 daddiu $a6, $zero, 0 # CHECK: encoding: [0x64,0x0a,0x00,0x00] 21 daddiu $a7, $zero, 0 # CHECK: encoding: [0x64,0x0b,0x00,0x00] 22 daddiu $t0, $zero, 0 # [*] # CHECK: encoding: [0x64,0x0c,0x00,0x00] 23 daddiu $t1, $zero, 0 # [*] # CHECK: encoding: [0x64,0x0d,0x00,0x00] 24 daddiu $t2, $zero, 0 # [*] # CHECK: encoding: [0x64,0x0e,0x00,0x00] 25 daddiu $t3, $zero, 0 # [*] # CHECK: encoding: [0x64,0x0f,0x00,0x00] 26 daddiu $t4, $zero, 0 # CHECK: encoding: [0x64,0x0c,0x00,0x00] 27 daddiu $t5, $zero, 0 # CHECK: encoding: [0x64,0x0d,0x00,0x00] 28 daddiu $t6, $zero, 0 # CHECK: encoding: [0x64,0x0e,0x00,0x00] 29 daddiu $t7, $zero, 0 # CHECK: encoding: [0x64,0x0f,0x00,0x00] 30 daddiu $s0, $zero, 0 # CHECK: encoding: [0x64,0x10,0x00,0x00] 31 daddiu $s1, $zero, 0 # CHECK: encoding: [0x64,0x11,0x00,0x00] 32 daddiu $s2, $zero, 0 # CHECK: encoding: [0x64,0x12,0x00,0x00] 33 daddiu $s3, $zero, 0 # CHECK: encoding: [0x64,0x13,0x00,0x00] 34 daddiu $s4, $zero, 0 # CHECK: encoding: [0x64,0x14,0x00,0x00] 35 daddiu $s5, $zero, 0 # CHECK: encoding: [0x64,0x15,0x00,0x00] 36 daddiu $s6, $zero, 0 # CHECK: encoding: [0x64,0x16,0x00,0x00] 37 daddiu $s7, $zero, 0 # CHECK: encoding: [0x64,0x17,0x00,0x00] 38 daddiu $t8, $zero, 0 # CHECK: encoding: [0x64,0x18,0x00,0x00] 39 daddiu $t9, $zero, 0 # CHECK: encoding: [0x64,0x19,0x00,0x00] 40 daddiu $kt0, $zero, 0 # CHECK: encoding: [0x64,0x1a,0x00,0x00] 41 daddiu $kt1, $zero, 0 # CHECK: encoding: [0x64,0x1b,0x00,0x00] 42 daddiu $gp, $zero, 0 # CHECK: encoding: [0x64,0x1c,0x00,0x00] 43 daddiu $sp, $zero, 0 # CHECK: encoding: [0x64,0x1d,0x00,0x00] 44 daddiu $s8, $zero, 0 # CHECK: encoding: [0x64,0x1e,0x00,0x00] 45 daddiu $fp, $zero, 0 # CHECK: encoding: [0x64,0x1e,0x00,0x00] 46 daddiu $ra, $zero, 0 # CHECK: encoding: [0x64,0x1f,0x00,0x00] 47 48 # [*] - t0-t3 are aliases of t4-t7 for compatibility with both the original 49 # ABI documentation (using t4-t7) and GNU As (using t0-t3) 50