Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RISCV] Improve check prefixes in B extension tests. NFC
-Add Z for the B extension subextensions. -Don't mention I along with B or its sub extensions. This is based on comments in D107817. Differential Revision: https://reviews.llvm.org/D107992
- Loading branch information
Showing
20 changed files
with
5,998 additions
and
5,998 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py | ||
; RUN: llc -mtriple=riscv32 -mattr=+experimental-b -verify-machineinstrs < %s \ | ||
; RUN: | FileCheck %s -check-prefix=RV32IB | ||
; RUN: | FileCheck %s -check-prefix=RV32B | ||
; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbb -verify-machineinstrs < %s \ | ||
; RUN: | FileCheck %s -check-prefix=RV32IBB | ||
; RUN: | FileCheck %s -check-prefix=RV32ZBB | ||
|
||
declare i32 @llvm.riscv.orc.b.i32(i32) | ||
|
||
define i32 @orcb(i32 %a) nounwind { | ||
; RV32IB-LABEL: orcb: | ||
; RV32IB: # %bb.0: | ||
; RV32IB-NEXT: orc.b a0, a0 | ||
; RV32IB-NEXT: ret | ||
; RV32B-LABEL: orcb: | ||
; RV32B: # %bb.0: | ||
; RV32B-NEXT: orc.b a0, a0 | ||
; RV32B-NEXT: ret | ||
; | ||
; RV32IBB-LABEL: orcb: | ||
; RV32IBB: # %bb.0: | ||
; RV32IBB-NEXT: orc.b a0, a0 | ||
; RV32IBB-NEXT: ret | ||
; RV32ZBB-LABEL: orcb: | ||
; RV32ZBB: # %bb.0: | ||
; RV32ZBB-NEXT: orc.b a0, a0 | ||
; RV32ZBB-NEXT: ret | ||
%tmp = call i32 @llvm.riscv.orc.b.i32(i32 %a) | ||
ret i32 %tmp | ||
} |
Oops, something went wrong.