|
46 | 46 | ; RUN: llc -mtriple=riscv32 -mattr=+experimental-zcb %s -o - | FileCheck --check-prefixes=CHECK,RV32ZCB %s |
47 | 47 | ; RUN: llc -mtriple=riscv32 -mattr=+experimental-zcd %s -o - | FileCheck --check-prefixes=CHECK,RV32ZCD %s |
48 | 48 | ; RUN: llc -mtriple=riscv32 -mattr=+experimental-zcf %s -o - | FileCheck --check-prefixes=CHECK,RV32ZCF %s |
| 49 | +; RUN: llc -mtriple=riscv32 -mattr=+zicsr %s -o - | FileCheck --check-prefixes=CHECK,RV32ZICSR %s |
| 50 | +; RUN: llc -mtriple=riscv32 -mattr=+zifencei %s -o - | FileCheck --check-prefixes=CHECK,RV32ZIFENCEI %s |
49 | 51 |
|
50 | 52 | ; RUN: llc -mtriple=riscv64 %s -o - | FileCheck %s |
51 | 53 | ; RUN: llc -mtriple=riscv64 -mattr=+m %s -o - | FileCheck --check-prefixes=CHECK,RV64M %s |
|
99 | 101 | ; RUN: llc -mtriple=riscv64 -mattr=+experimental-zca %s -o - | FileCheck --check-prefixes=CHECK,RV64ZCA %s |
100 | 102 | ; RUN: llc -mtriple=riscv64 -mattr=+experimental-zcb %s -o - | FileCheck --check-prefixes=CHECK,RV64ZCB %s |
101 | 103 | ; RUN: llc -mtriple=riscv64 -mattr=+experimental-zcd %s -o - | FileCheck --check-prefixes=CHECK,RV64ZCD %s |
| 104 | +; RUN: llc -mtriple=riscv64 -mattr=+zicsr %s -o - | FileCheck --check-prefixes=CHECK,RV64ZICSR %s |
| 105 | +; RUN: llc -mtriple=riscv64 -mattr=+zifencei %s -o - | FileCheck --check-prefixes=CHECK,RV64ZIFENCEI %s |
102 | 106 |
|
103 | 107 | ; CHECK: .attribute 4, 16 |
104 | 108 |
|
|
147 | 151 | ; RV32ZCB: .attribute 5, "rv32i2p0_zca1p0_zcb1p0" |
148 | 152 | ; RV32ZCD: .attribute 5, "rv32i2p0_zcd1p0" |
149 | 153 | ; RV32ZCF: .attribute 5, "rv32i2p0_zcf1p0" |
| 154 | +; RV32ZICSR: .attribute 5, "rv32i2p0_zicsr2p0" |
| 155 | +; RV32ZIFENCEI: .attribute 5, "rv32i2p0_zifencei2p0" |
150 | 156 |
|
151 | 157 | ; RV64M: .attribute 5, "rv64i2p0_m2p0" |
152 | 158 | ; RV64ZMMUL: .attribute 5, "rv64i2p0_zmmul1p0" |
|
199 | 205 | ; RV64ZCA: .attribute 5, "rv64i2p0_zca1p0" |
200 | 206 | ; RV64ZCB: .attribute 5, "rv64i2p0_zca1p0_zcb1p0" |
201 | 207 | ; RV64ZCD: .attribute 5, "rv64i2p0_zcd1p0" |
| 208 | +; RV64ZICSR: .attribute 5, "rv64i2p0_zicsr2p0" |
| 209 | +; RV64ZIFENCEI: .attribute 5, "rv64i2p0_zifencei2p0" |
202 | 210 |
|
203 | 211 | define i32 @addi(i32 %a) { |
204 | 212 | %1 = add i32 %a, 1 |
|
0 commit comments