|
1 | 1 | # Xqcisync - Qualcomm uC Sync Delay Extension
|
2 | 2 | # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcisync -M no-aliases -show-encoding \
|
3 |
| -# RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST %s |
| 3 | +# RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST,CHECK-NOALIAS %s |
4 | 4 | # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+experimental-xqcisync < %s \
|
5 | 5 | # RUN: | llvm-objdump --mattr=+experimental-xqcisync -M no-aliases --no-print-imm-hex -d - \
|
6 | 6 | # RUN: | FileCheck -check-prefix=CHECK-INST %s
|
7 | 7 | # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-xqcisync -show-encoding \
|
8 |
| -# RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST %s |
| 8 | +# RUN: | FileCheck -check-prefixes=CHECK-ENC,CHECK-INST,CHECK-ALIAS %s |
9 | 9 | # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+experimental-xqcisync < %s \
|
10 | 10 | # RUN: | llvm-objdump --mattr=+experimental-xqcisync --no-print-imm-hex -d - \
|
11 | 11 | # RUN: | FileCheck -check-prefix=CHECK-INST %s
|
|
14 | 14 | # CHECK-ENC: encoding: [0x2a,0x00]
|
15 | 15 | qc.c.delay 10
|
16 | 16 |
|
17 |
| -# CHECK-INST: qc.sync 8 |
18 |
| -# CHECK-ENC: encoding: [0x13,0x30,0x80,0x10] |
19 |
| -qc.sync 8 |
| 17 | +# CHECK-INST: qc.sync 9 |
| 18 | +# CHECK-ENC: encoding: [0x13,0x30,0x90,0x10] |
| 19 | +qc.sync 9 |
20 | 20 |
|
21 | 21 | # CHECK-INST: qc.syncr 23
|
22 | 22 | # CHECK-ENC: encoding: [0x13,0x30,0x70,0x21]
|
23 | 23 | qc.syncr 23
|
24 | 24 |
|
25 |
| -# CHECK-INST: qc.syncwf 31 |
26 |
| -# CHECK-ENC: encoding: [0x13,0x30,0xf0,0x41] |
27 |
| -qc.syncwf 31 |
| 25 | +# CHECK-INST: qc.syncwf 30 |
| 26 | +# CHECK-ENC: encoding: [0x13,0x30,0xe0,0x41] |
| 27 | +qc.syncwf 30 |
28 | 28 |
|
29 |
| -# CHECK-INST: qc.syncwl 1 |
30 |
| -# CHECK-ENC: encoding: [0x13,0x30,0x10,0x80] |
31 |
| -qc.syncwl 1 |
| 29 | +# CHECK-INST: qc.syncwl 6 |
| 30 | +# CHECK-ENC: encoding: [0x13,0x30,0x60,0x80] |
| 31 | +qc.syncwl 6 |
32 | 32 |
|
33 |
| -# CHECK-INST: qc.c.sync 0 |
| 33 | +# CHECK-NOALIAS: qc.c.sync 0 |
| 34 | +# CHECK-ALIAS: qc.sync 0 |
34 | 35 | # CHECK-ENC: encoding: [0x01,0x80]
|
35 | 36 | qc.c.sync 0
|
36 | 37 |
|
37 |
| -# CHECK-INST: qc.c.syncr 15 |
| 38 | +# CHECK-NOALIAS: qc.c.syncr 15 |
| 39 | +# CHECK-ALIAS: qc.syncr 15 |
38 | 40 | # CHECK-ENC: encoding: [0x01,0x87]
|
39 | 41 | qc.c.syncr 15
|
40 | 42 |
|
41 |
| -# CHECK-INST: qc.c.syncwf 31 |
| 43 | +# CHECK-NOALIAS: qc.c.syncwf 31 |
| 44 | +# CHECK-ALIAS: qc.syncwf 31 |
42 | 45 | # CHECK-ENC: encoding: [0x81,0x93]
|
43 | 46 | qc.c.syncwf 31
|
44 | 47 |
|
45 |
| -# CHECK-INST: qc.c.syncwl 4 |
| 48 | +# CHECK-NOALIAS: qc.c.syncwl 4 |
| 49 | +# CHECK-ALIAS: qc.syncwl 4 |
46 | 50 | # CHECK-ENC: encoding: [0x81,0x95]
|
47 | 51 | qc.c.syncwl 4
|
| 52 | + |
| 53 | +# Check that compressed patterns work |
| 54 | + |
| 55 | +# CHECK-NOALIAS: qc.c.sync 8 |
| 56 | +# CHECK-ALIAS: qc.sync 8 |
| 57 | +# CHECK-ENC: encoding: [0x01,0x82] |
| 58 | +qc.sync 8 |
| 59 | + |
| 60 | +# CHECK-NOALIAS: qc.c.syncr 31 |
| 61 | +# CHECK-ALIAS: qc.syncr 31 |
| 62 | +# CHECK-ENC: encoding: [0x81,0x87] |
| 63 | +qc.syncr 31 |
| 64 | + |
| 65 | +# CHECK-NOALIAS: qc.c.syncwf 0 |
| 66 | +# CHECK-ALIAS: qc.syncwf 0 |
| 67 | +# CHECK-ENC: encoding: [0x01,0x90] |
| 68 | +qc.syncwf 0 |
| 69 | + |
| 70 | +# CHECK-NOALIAS: qc.c.syncwl 16 |
| 71 | +# CHECK-ALIAS: qc.syncwl 16 |
| 72 | +# CHECK-ENC: encoding: [0x81,0x96] |
| 73 | +qc.syncwl 16 |
0 commit comments