1 # OABI (o32, o64) have a different symbolic register 2 # set for the A and T registers because the NABI allows 3 # for 4 more register parameters (A registers) offsetting 4 # the T registers. 5 # 6 # For now just check N64 7 # RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding \ 8 # RUN: -mcpu=mips64r2 -arch=mips64 | \ 9 # RUN: FileCheck %s 10 11 # CHECK: .section __TEXT,__text,regular,pure_instructions 12 .text 13 foo: 14 15 # CHECK: add $16, $16, $4 # encoding: [0x02,0x04,0x80,0x20] 16 add $s0,$s0,$a0 17 # CHECK: add $16, $16, $6 # encoding: [0x02,0x06,0x80,0x20] 18 add $s0,$s0,$a2 19 # CHECK: add $16, $16, $7 # encoding: [0x02,0x07,0x80,0x20] 20 add $s0,$s0,$a3 21 # CHECK: add $16, $16, $8 # encoding: [0x02,0x08,0x80,0x20] 22 add $s0,$s0,$a4 23 # CHECK: add $16, $16, $9 # encoding: [0x02,0x09,0x80,0x20] 24 add $s0,$s0,$a5 25 # CHECK: add $16, $16, $10 # encoding: [0x02,0x0a,0x80,0x20] 26 add $s0,$s0,$a6 27 # CHECK: add $16, $16, $11 # encoding: [0x02,0x0b,0x80,0x20] 28 add $s0,$s0,$a7 29 # CHECK: add $16, $16, $12 # encoding: [0x02,0x0c,0x80,0x20] 30 add $s0,$s0,$t0 31 # CHECK: add $16, $16, $13 # encoding: [0x02,0x0d,0x80,0x20] 32 add $s0,$s0,$t1 33 # CHECK: add $16, $16, $14 # encoding: [0x02,0x0e,0x80,0x20] 34 add $s0,$s0,$t2 35 # CHECK: add $16, $16, $15 # encoding: [0x02,0x0f,0x80,0x20] 36 add $s0,$s0,$t3 37