1*c6967efeSAndrei Safronov# RUN: llvm-mc %s -triple=xtensa -show-encoding --mattr=+density \ 2*c6967efeSAndrei Safronov# RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s 3*c6967efeSAndrei Safronov 4*c6967efeSAndrei Safronov.align 4 5*c6967efeSAndrei SafronovLBL0: 6*c6967efeSAndrei Safronov 7*c6967efeSAndrei Safronov# Instruction format RRRN 8*c6967efeSAndrei Safronov# CHECK-INST: add.n a2, a3, a4 9*c6967efeSAndrei Safronov# CHECK: encoding: [0x4a,0x23] 10*c6967efeSAndrei Safronovadd.n a2, a3, a4 11*c6967efeSAndrei Safronov 12*c6967efeSAndrei Safronov# Instruction format RRRN 13*c6967efeSAndrei Safronov# CHECK-INST: addi.n a2, a3, 3 14*c6967efeSAndrei Safronov# CHECK: encoding: [0x3b,0x23] 15*c6967efeSAndrei Safronovaddi.n a2, a3, 3 16*c6967efeSAndrei Safronov 17*c6967efeSAndrei Safronov# Instruction format RRRN 18*c6967efeSAndrei Safronov# CHECK-INST: addi.n a2, a3, -1 19*c6967efeSAndrei Safronov# CHECK: encoding: [0x0b,0x23] 20*c6967efeSAndrei Safronovaddi.n a2, a3, -1 21*c6967efeSAndrei Safronov 22*c6967efeSAndrei Safronov# Instruction format RI6 23*c6967efeSAndrei Safronov# CHECK-INST: beqz.n a3, LBL1 24*c6967efeSAndrei Safronov# CHECK: encoding: [0x8c'A',0x03'A'] 25*c6967efeSAndrei Safronovbeqz.n a3, LBL1 26*c6967efeSAndrei Safronov 27*c6967efeSAndrei Safronov# Instruction format RI6 28*c6967efeSAndrei Safronov# CHECK-INST: bnez.n a3, LBL1 29*c6967efeSAndrei Safronov# CHECK: encoding: [0xcc'A',0x03'A'] 30*c6967efeSAndrei Safronovbnez.n a3, LBL1 31*c6967efeSAndrei Safronov 32*c6967efeSAndrei Safronov# Instruction format RRRN 33*c6967efeSAndrei Safronov# CHECK-INST: ill.n 34*c6967efeSAndrei Safronov# CHECK: encoding: [0x6d,0xf0] 35*c6967efeSAndrei Safronovill.n 36*c6967efeSAndrei Safronov 37*c6967efeSAndrei Safronov# Instruction format RRRN 38*c6967efeSAndrei Safronov# CHECK-INST: l32i.n a2, a3, 12 39*c6967efeSAndrei Safronov# CHECK: encoding: [0x28,0x33] 40*c6967efeSAndrei Safronovl32i.n a2, a3, 12 41*c6967efeSAndrei Safronov 42*c6967efeSAndrei Safronov# Instruction format RRRN 43*c6967efeSAndrei Safronov# CHECK-INST: mov.n a2, a3 44*c6967efeSAndrei Safronov# CHECK: encoding: [0x2d,0x03] 45*c6967efeSAndrei Safronovmov.n a2, a3 46*c6967efeSAndrei Safronov 47*c6967efeSAndrei Safronov# Instruction format RI7 48*c6967efeSAndrei Safronov# CHECK-INST: movi.n a2, -32 49*c6967efeSAndrei Safronov# CHECK: encoding: [0x6c,0x02] 50*c6967efeSAndrei Safronovmovi.n a2, -32 51*c6967efeSAndrei Safronov 52*c6967efeSAndrei Safronov# Instruction format RRRN 53*c6967efeSAndrei Safronov# CHECK-INST: nop.n 54*c6967efeSAndrei Safronov# CHECK: encoding: [0x3d,0xf0] 55*c6967efeSAndrei Safronovnop.n 56*c6967efeSAndrei Safronov 57*c6967efeSAndrei Safronov# Instruction format RRRN 58*c6967efeSAndrei Safronov# CHECK-INST: ret.n 59*c6967efeSAndrei Safronov# CHECK: encoding: [0x0d,0xf0] 60*c6967efeSAndrei Safronovret.n 61*c6967efeSAndrei Safronov 62*c6967efeSAndrei Safronov# Instruction format RRRN 63*c6967efeSAndrei Safronov# CHECK-INST: s32i.n a2, a3, 12 64*c6967efeSAndrei Safronov# CHECK: encoding: [0x29,0x33] 65*c6967efeSAndrei Safronovs32i.n a2, a3, 12 66*c6967efeSAndrei Safronov 67*c6967efeSAndrei Safronov.align 4 68*c6967efeSAndrei SafronovLBL1: 69