| 1 |
# RUN: llvm-exegesis -mode=latency -mtriple=riscv64-unknown-linux-gnu --mcpu=generic --benchmark-phase=assemble-measured-code -opcode-name=C_ADDI -mattr=+c | FileCheck --check-prefix=C_ADDI %s |
| 2 |
|
| 3 |
C_ADDI: --- |
| 4 |
C_ADDI-NEXT: mode: latency |
| 5 |
C_ADDI-NEXT: key: |
| 6 |
C_ADDI-NEXT: instructions: |
| 7 |
C_ADDI-NEXT: - 'C_ADDI [[REG01:X[0-9]+]] [[RE02:X[0-9]+]] [[IMM0:i_0x[0-9]+]]' |
| 8 |
|
| 9 |
# RUN: llvm-exegesis -mode=latency -mtriple=riscv64-unknown-linux-gnu --mcpu=generic --benchmark-phase=assemble-measured-code -opcode-name=C_ADDIW -mattr=+c | FileCheck --check-prefix=C_ADDIW %s |
| 10 |
|
| 11 |
C_ADDIW: --- |
| 12 |
C_ADDIW-NEXT: mode: latency |
| 13 |
C_ADDIW-NEXT: key: |
| 14 |
C_ADDIW-NEXT: instructions: |
| 15 |
C_ADDIW-NEXT: - 'C_ADDIW [[REG11:X[0-9]+]] [[RE12:X[0-9]+]] [[IMM1:i_0x[0-9]+]]' |
| 16 |
|
| 17 |
# RUN: llvm-exegesis -mode=latency -mtriple=riscv64-unknown-linux-gnu --mcpu=generic --benchmark-phase=assemble-measured-code -opcode-name=C_ANDI -mattr=+c | FileCheck --check-prefix=C_ANDI %s |
| 18 |
|
| 19 |
C_ANDI: --- |
| 20 |
C_ANDI-NEXT: mode: latency |
| 21 |
C_ANDI-NEXT: key: |
| 22 |
C_ANDI-NEXT: instructions: |
| 23 |
C_ANDI-NEXT: - 'C_ANDI [[REG31:X[0-9]+]] [[REG32:X[0-9]+]] [[IMM3:i_0x[0-9]+]]' |
| 24 |
|
| 25 |
# RUN: llvm-exegesis -mode=latency -mtriple=riscv64-unknown-linux-gnu --mcpu=generic --benchmark-phase=assemble-measured-code -opcode-name=C_SLLI -mattr=+c | FileCheck --check-prefix=C_SLLI %s |
| 26 |
|
| 27 |
C_SLLI: --- |
| 28 |
C_SLLI-NEXT: mode: latency |
| 29 |
C_SLLI-NEXT: key: |
| 30 |
C_SLLI-NEXT: instructions: |
| 31 |
C_SLLI-NEXT: - 'C_SLLI [[REG81:X[0-9]+]] [[REG82:X[0-9]+]] [[IMM8:i_0x[0-9]+]]' |
| 32 |
|
| 33 |
# RUN: llvm-exegesis -mode=latency -mtriple=riscv64-unknown-linux-gnu --mcpu=generic --benchmark-phase=assemble-measured-code -opcode-name=C_SRAI -mattr=+c | FileCheck --check-prefix=C_SRAI %s |
| 34 |
|
| 35 |
C_SRAI: --- |
| 36 |
C_SRAI-NEXT: mode: latency |
| 37 |
C_SRAI-NEXT: key: |
| 38 |
C_SRAI-NEXT: instructions: |
| 39 |
C_SRAI-NEXT: - 'C_SRAI [[REG91:X[0-9]+]] [[REG92:X[0-9]+]] [[IMM9:i_0x[0-9]+]]' |
| 40 |
|
| 41 |
# RUN: llvm-exegesis -mode=latency -mtriple=riscv64-unknown-linux-gnu --mcpu=generic --benchmark-phase=assemble-measured-code -opcode-name=C_SRLI -mattr=+c | FileCheck --check-prefix=C_SRLI %s |
| 42 |
|
| 43 |
C_SRLI: --- |
| 44 |
C_SRLI-NEXT: mode: latency |
| 45 |
C_SRLI-NEXT: key: |
| 46 |
C_SRLI-NEXT: instructions: |
| 47 |
C_SRLI-NEXT: - 'C_SRLI [[REG101:X[0-9]+]] [[REG102:X[0-9]+]] [[IMM10:i_0x[0-9]+]]' |
| 48 |
C_SRLI-DAG: ... |