brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.8 KiB · 2396271 Raw
166 lines · plain
1# Xqcilia - Qualcomm uC Large Immediate Arithmetic extension2# RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcilia -M no-aliases -show-encoding \3# RUN:     | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST,CHECK-NOALIAS %s4# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+experimental-xqcilia < %s \5# RUN:     | llvm-objdump --mattr=+experimental-xqcilia -M no-aliases --no-print-imm-hex -d - \6# RUN:     | FileCheck -check-prefix=CHECK-INST %s7# RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcilia -show-encoding \8# RUN:     | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST,CHECK-ALIAS %s9# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+experimental-xqcilia < %s \10# RUN:     | llvm-objdump --mattr=+experimental-xqcilia --no-print-imm-hex -d - \11# RUN:     | FileCheck -check-prefix=CHECK-INST %s12 13.option exact14 15# CHECK-INST: qc.e.addai      s1, -116# CHECK-ENC: encoding: [0x9f,0x24,0xff,0xff,0xff,0xff]17qc.e.addai x9, 429496729518 19 20# CHECK-INST: qc.e.addai      s1, -214748364821# CHECK-ENC: encoding: [0x9f,0x24,0x00,0x00,0x00,0x80]22qc.e.addai x9, -214748364823 24 25# CHECK-INST: qc.e.addi       a0, s1, -3355443226# CHECK-ENC: encoding: [0x1f,0xb5,0x04,0x80,0x00,0x80]27qc.e.addi x10, x9, -3355443228 29# CHECK-INST: qc.e.addi       a0, s1, 3355443130# CHECK-ENC: encoding: [0x1f,0xb5,0xf4,0xbf,0xff,0x7f]31qc.e.addi x10, x9, 3355443132 33 34# CHECK-INST: qc.e.andai      s1, -135# CHECK-ENC: encoding: [0x9f,0xa4,0xff,0xff,0xff,0xff]36qc.e.andai x9, 429496729537 38 39# CHECK-INST: qc.e.andai      s1, -214748364840# CHECK-ENC: encoding: [0x9f,0xa4,0x00,0x00,0x00,0x80]41qc.e.andai x9, -214748364842 43 44# CHECK-INST: qc.e.andi       a0, s1, -3355443245# CHECK-ENC: encoding: [0x1f,0xb5,0x04,0xc0,0x00,0x80]46qc.e.andi x10, x9, -3355443247 48# CHECK-INST: qc.e.andi       a0, s1, 3355443149# CHECK-ENC: encoding: [0x1f,0xb5,0xf4,0xff,0xff,0x7f]50qc.e.andi x10, x9, 3355443151 52 53# CHECK-INST: qc.e.orai       s1, -154# CHECK-ENC: encoding: [0x9f,0x94,0xff,0xff,0xff,0xff]55qc.e.orai x9, 429496729556 57# CHECK-INST: qc.e.orai       s1, -214748364858# CHECK-ENC: encoding: [0x9f,0x94,0x00,0x00,0x00,0x80]59qc.e.orai x9, -214748364860 61 62# CHECK-INST: qc.e.ori        a0, s1, -3355443263# CHECK-ENC: encoding: [0x1f,0xb5,0x04,0x40,0x00,0x80]64qc.e.ori x10, x9, -3355443265 66# CHECK-INST: qc.e.ori        a0, s1, 3355443167# CHECK-ENC: encoding: [0x1f,0xb5,0xf4,0x7f,0xff,0x7f]68qc.e.ori x10, x9, 3355443169 70 71# CHECK-INST: qc.e.xorai      s1, -172# CHECK-ENC: encoding: [0x9f,0x14,0xff,0xff,0xff,0xff]73qc.e.xorai x9, 429496729574 75# CHECK-INST: qc.e.xorai      s1, -214748364876# CHECK-ENC: encoding: [0x9f,0x14,0x00,0x00,0x00,0x80]77qc.e.xorai x9, -214748364878 79 80# CHECK-INST: qc.e.xori       a0, s1, -3355443281# CHECK-ENC: encoding: [0x1f,0xb5,0x04,0x00,0x00,0x80]82qc.e.xori x10, x9, -3355443283 84# CHECK-INST: qc.e.xori       a0, s1, 3355443185# CHECK-ENC: encoding: [0x1f,0xb5,0xf4,0x3f,0xff,0x7f]86qc.e.xori x10, x9, 3355443187 88# Check that compress patterns work as expected89 90.option noexact91 92# CHECK-ALIAS: addi t0, t0, 2093# CHECK-NOALIAS: c.addi t0, 2094# CHECK-ENC: encoding: [0xd1,0x02]95qc.e.addi x5, x5, 2096 97# CHECK-ALIAS: andi s1, s1, -1098# CHECK-NOALIAS: c.andi s1, -1099# CHECK-ENC: encoding: [0xd9,0x98]100qc.e.andi x9, x9, -10101 102# CHECK-ALIAS: mv t0, t1103# CHECK-NOALIAS: c.mv t0, t1104# CHECK-ENC: encoding: [0x9a,0x82]105qc.e.addi x5, x6, 0106 107# CHECK-ALIAS: addi sp, sp, 48108# CHECK-NOALIAS: c.addi16sp sp, 48109# CHECK-ENC: encoding: [0x45,0x61]110qc.e.addi x2, x2, 48111 112# CHECK-ALIAS: addi s1, s1, -1113# CHECK-NOALIAS: c.addi s1, -1114# CHECK-ENC: encoding: [0xfd,0x14]115qc.e.addai x9, 4294967295116 117# CHECK-ALIAS: addi sp, sp, 48118# CHECK-NOALIAS: c.addi16sp sp, 48119# CHECK-ENC: encoding: [0x45,0x61]120qc.e.addai x2, 48121 122# CHECK-ALIAS: andi s1, s1, -1123# CHECK-NOALIAS: c.andi s1, -1124# CHECK-ENC: encoding: [0xfd,0x98]125qc.e.andai x9, 4294967295126 127# CHECK-ALIAS: addi t0, t2, 400128# CHECK-NOALIAS: addi t0, t2, 400129# CHECK-ENC: encoding: [0x93,0x82,0x03,0x19]130qc.e.addi x5, x7, 400131 132# CHECK-ALIAS: andi t0, t2, 750133# CHECK-NOALIAS: andi t0, t2, 750134# CHECK-ENC: encoding: [0x93,0xf2,0xe3,0x2e]135qc.e.andi x5, x7, 750136 137# CHECK-ALIAS: ori t0, t2, 854138# CHECK-NOALIAS: ori t0, t2, 854139# CHECK-ENC: encoding: [0x93,0xe2,0x63,0x35]140qc.e.ori x5, x7, 854141 142# CHECK-ALIAS: xori t0, t2, -200143# CHECK-NOALIAS: xori t0, t2, -200144# CHECK-ENC: encoding: [0x93,0xc2,0x83,0xf3]145qc.e.xori x5, x7, -200146 147# CHECK-ALIAS: addi t2, t2, 400148# CHECK-NOALIAS: addi t2, t2, 400149# CHECK-ENC: encoding: [0x93,0x83,0x03,0x19]150qc.e.addai x7, 400151 152# CHECK-ALIAS: andi t2, t2, 750153# CHECK-NOALIAS: andi t2, t2, 750154# CHECK-ENC: encoding: [0x93,0xf3,0xe3,0x2e]155qc.e.andai x7, 750156 157# CHECK-ALIAS: ori t2, t2, 854158# CHECK-NOALIAS: ori t2, t2, 854159# CHECK-ENC: encoding: [0x93,0xe3,0x63,0x35]160qc.e.orai x7, 854161 162# CHECK-ALIAS: xori t2, t2, -200163# CHECK-NOALIAS: xori t2, t2, -200164# CHECK-ENC: encoding: [0x93,0xc3,0x83,0xf3]165qc.e.xorai x7, -200166