Skip to content

Commit 5196dd3

Browse files
committed
Format adjustment and some bugfix
1 parent 3321010 commit 5196dd3

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

llvm/docs/ReleaseNotes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Changes to the RISC-V Backend
121121
* Ssctr and Smctr extensions are no longer experimental.
122122
* Add support for Zvfbfa (Additional BF16 vector compute support)
123123
* Adds experimental support for the 'Zibi` (Branch with Immediate) extension.
124+
124125
Changes to the WebAssembly Backend
125126
----------------------------------
126127

llvm/lib/Target/RISCV/RISCVInstrInfoZibi.td

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- RISCVInstrInfoZibi.td - 'Zibi' instructions ------*- tablegen -*-===//
1+
//===-- RISCVInstrInfoZibi.td - 'Zibi' instructions --------*- tablegen -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,6 +9,7 @@
99
/// This file describes the RISC-V instructions for 'Zibi' (branch with imm).
1010
///
1111
//===----------------------------------------------------------------------===//
12+
1213
// A 5-bit unsigned immediate representing 1-31 and -1. 00000 represents -1.
1314
def uimm5_zibi : RISCVOp<XLenVT>, ImmLeaf<XLenVT, [{
1415
return (Imm != 0 && isUInt<5>(Imm)) || Imm == -1;
@@ -36,7 +37,8 @@ class Branch_imm<bits<3> funct3, string opcodestr>
3637
let mayLoad = 0;
3738
let mayStore = 0;
3839
}
40+
3941
let Predicates = [HasStdExtZibi] in {
4042
def BEQI : Branch_imm<0b010, "beqi">;
4143
def BNEI : Branch_imm<0b011, "bnei">;
42-
} // Predicates = [HasStdExtZibi]
44+
} // Predicates = [HasStdExtZibi]

llvm/test/CodeGen/RISCV/attributes.ll

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,9 @@
173173
; RUN: llc -mtriple=riscv32 -mattr=+smmpm %s -o - | FileCheck --check-prefix=RV32SMMPM %s
174174
; RUN: llc -mtriple=riscv32 -mattr=+sspm %s -o - | FileCheck --check-prefix=RV32SSPM %s
175175
; RUN: llc -mtriple=riscv32 -mattr=+supm %s -o - | FileCheck --check-prefix=RV32SUPM %s
176-
<<<<<<< HEAD
177176
; RUN: llc -mtriple=riscv32 -mattr=+smctr %s -o - | FileCheck --check-prefix=RV32SMCTR %s
178177
; RUN: llc -mtriple=riscv32 -mattr=+ssctr %s -o - | FileCheck --check-prefix=RV32SSCTR %s
179-
=======
180-
; RUN: llc -mtriple=riscv32 -mattr=+experimental-smctr %s -o - | FileCheck --check-prefix=RV32SMCTR %s
181-
; RUN: llc -mtriple=riscv32 -mattr=+experimental-ssctr %s -o - | FileCheck --check-prefix=RV32SSCTR %s
182178
; RUN: llc -mtriple=riscv32 -mattr=+experimental-zibi %s -o - | FileCheck --check-prefix=RV32ZIBI %s
183-
>>>>>>> aea8133a1fe3 ([RISCV][MC] Add MC support of Zibi experimental extension)
184179

185180
; RUN: llc -mtriple=riscv64 %s -o - | FileCheck %s
186181
; RUN: llc -mtriple=riscv64 -mattr=+m %s -o - | FileCheck --check-prefixes=CHECK,RV64M %s
@@ -540,12 +535,8 @@
540535
; RV32SUPM: .attribute 5, "rv32i2p1_supm1p0"
541536
; RV32SMCTR: .attribute 5, "rv32i2p1_smctr1p0_sscsrind1p0"
542537
; RV32SSCTR: .attribute 5, "rv32i2p1_sscsrind1p0_ssctr1p0"
543-
<<<<<<< HEAD
544538
; RV32P: .attribute 5, "rv32i2p1_p0p15"
545-
=======
546-
; RV32P: .attribute 5, "rv32i2p1_p0p14"
547539
; RV32ZIBI: .attribute 5, "rv32i2p1_zibi0p1"
548-
>>>>>>> aea8133a1fe3 ([RISCV][MC] Add MC support of Zibi experimental extension)
549540

550541
; RV64M: .attribute 5, "rv64i2p1_m2p0_zmmul1p0"
551542
; RV64ZMMUL: .attribute 5, "rv64i2p1_zmmul1p0"

0 commit comments

Comments
 (0)