• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc %s -triple=mips-unknown-freebsd -show-encoding | FileCheck %s
2
3# Check that the register names are mapped to their correct numbers for o32
4# Second byte of addiu with $zero at rt contains the number of the source
5# register.
6
7.set noat
8addiu	$zero, $zero, 0 # CHECK: encoding: [0x24,0x00,0x00,0x00]
9addiu	$at, $zero, 0   # CHECK: encoding: [0x24,0x01,0x00,0x00]
10addiu	$AT, $zero, 0   # CHECK: encoding: [0x24,0x01,0x00,0x00]
11addiu	$v0, $zero, 0   # CHECK: encoding: [0x24,0x02,0x00,0x00]
12addiu	$v1, $zero, 0   # CHECK: encoding: [0x24,0x03,0x00,0x00]
13addiu	$a0, $zero, 0   # CHECK: encoding: [0x24,0x04,0x00,0x00]
14addiu	$a1, $zero, 0   # CHECK: encoding: [0x24,0x05,0x00,0x00]
15addiu	$a2, $zero, 0   # CHECK: encoding: [0x24,0x06,0x00,0x00]
16addiu	$a3, $zero, 0   # CHECK: encoding: [0x24,0x07,0x00,0x00]
17addiu	$t0, $zero, 0   # CHECK: encoding: [0x24,0x08,0x00,0x00]
18addiu	$t1, $zero, 0   # CHECK: encoding: [0x24,0x09,0x00,0x00]
19addiu	$t2, $zero, 0   # CHECK: encoding: [0x24,0x0a,0x00,0x00]
20addiu	$t3, $zero, 0   # CHECK: encoding: [0x24,0x0b,0x00,0x00]
21addiu	$t4, $zero, 0   # CHECK: encoding: [0x24,0x0c,0x00,0x00]
22addiu	$t5, $zero, 0   # CHECK: encoding: [0x24,0x0d,0x00,0x00]
23addiu	$t6, $zero, 0   # CHECK: encoding: [0x24,0x0e,0x00,0x00]
24addiu	$t7, $zero, 0   # CHECK: encoding: [0x24,0x0f,0x00,0x00]
25addiu	$s0, $zero, 0   # CHECK: encoding: [0x24,0x10,0x00,0x00]
26addiu	$s1, $zero, 0   # CHECK: encoding: [0x24,0x11,0x00,0x00]
27addiu	$s2, $zero, 0   # CHECK: encoding: [0x24,0x12,0x00,0x00]
28addiu	$s3, $zero, 0   # CHECK: encoding: [0x24,0x13,0x00,0x00]
29addiu	$s4, $zero, 0   # CHECK: encoding: [0x24,0x14,0x00,0x00]
30addiu	$s5, $zero, 0   # CHECK: encoding: [0x24,0x15,0x00,0x00]
31addiu	$s6, $zero, 0   # CHECK: encoding: [0x24,0x16,0x00,0x00]
32addiu	$s7, $zero, 0   # CHECK: encoding: [0x24,0x17,0x00,0x00]
33addiu	$t8, $zero, 0   # CHECK: encoding: [0x24,0x18,0x00,0x00]
34addiu	$t9, $zero, 0   # CHECK: encoding: [0x24,0x19,0x00,0x00]
35addiu	$k0, $zero, 0   # CHECK: encoding: [0x24,0x1a,0x00,0x00]
36addiu	$k1, $zero, 0   # CHECK: encoding: [0x24,0x1b,0x00,0x00]
37addiu	$gp, $zero, 0   # CHECK: encoding: [0x24,0x1c,0x00,0x00]
38addiu	$sp, $zero, 0   # CHECK: encoding: [0x24,0x1d,0x00,0x00]
39addiu	$fp, $zero, 0   # CHECK: encoding: [0x24,0x1e,0x00,0x00]
40addiu	$s8, $zero, 0   # CHECK: encoding: [0x24,0x1e,0x00,0x00]
41addiu	$ra, $zero, 0   # CHECK: encoding: [0x24,0x1f,0x00,0x00]
42