brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 8e9c164 Raw
61 lines · plain
1# Xqcili - Qualcomm uC Load Large Immediate Extension2# RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcili -M no-aliases -show-encoding \3# RUN:     | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST,CHECK-NOALIAS %s4 5# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+experimental-xqcili < %s \6# RUN:     | llvm-objdump --mattr=+experimental-xqcili -M no-aliases --no-print-imm-hex -d - \7# RUN:     | FileCheck -check-prefix=CHECK-INST %s8 9# RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcili -show-encoding \10# RUN:     | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST,CHECK-ALIAS %s11 12# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+experimental-xqcili < %s \13# RUN:     | llvm-objdump --mattr=+experimental-xqcili --no-print-imm-hex -d - \14# RUN:     | FileCheck -check-prefix=CHECK-INST %s15 16 17# CHECK-INST: qc.e.li a0, -214748364818# CHECK-ENC: encoding: [0x1f,0x05,0x00,0x00,0x00,0x80]19qc.e.li x10, -214748364820 21# CHECK-INST: qc.e.li s1, -3355443222# CHECK-ENC: encoding: [0x9f,0x04,0x00,0x00,0x00,0xfe]23qc.e.li x9, -3355443224 25# CHECK-INST: qc.e.li s1, 3355443126# CHECK-ENC: encoding: [0x9f,0x04,0xff,0xff,0xff,0x01]27qc.e.li x9, 3355443128 29# CHECK-INST: qc.li   s1, 52428730# CHECK-ENC: encoding: [0x9b,0xf4,0xff,0x7f]31qc.li x9, 52428732 33# CHECK-INST: qc.li   s1, -52428834# CHECK-ENC: encoding: [0x9b,0x04,0x00,0x80]35qc.li x9, -52428836 37# CHECK-INST: qc.li   a0, 1234538# CHECK-ENC: encoding: [0x1b,0x05,0x39,0x30]39qc.li x10, 1234540 41# CHECK-INST: qc.li   a0, -1234642# CHECK-ENC: encoding: [0x1b,0xf5,0xc6,0xcf]43qc.li x10, -1234644 45# Check that compress patterns work as expected46 47# CHECK-ALIAS: li a0, -148# CHECK-NOALIAS: c.li a0, -149# CHECK-ENC: encoding: [0x7d,0x55]50qc.e.li x10, 429496729551 52# CHECK-ALIAS: li a0, 3153# CHECK-NOALIAS: c.li a0, 3154# CHECK-ENC: encoding: [0x7d,0x45]55qc.li x10, 3156 57# CHECK-ALIAS: li a0, 429458# CHECK-NOALIAS: qc.li a0, 429459# CHECK-ENC: encoding: [0x1b,0x05,0xc6,0x10]60qc.e.li x10, 429461