Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DPWBS-1361] Adding Instruction Selection support for G_CTLZ and the …
…corresponding test case.
- Loading branch information
1 parent
6122714
commit 3f811d7
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py | ||
# RUN: llc -O0 -mtriple=tricore -global-isel -run-pass=instruction-select \ | ||
# RUN: -verify-machineinstrs %s -o - | FileCheck %s | ||
|
||
--- | ||
name: test_ctlz_s32 | ||
legalized: true | ||
regBankSelected: true | ||
|
||
registers: | ||
- { id: 0, class: dataregbank } | ||
- { id: 1, class: dataregbank } | ||
|
||
body: | | ||
bb.0: | ||
; CHECK-LABEL: name: test_ctlz_s32 | ||
; CHECK: [[COPY:%[0-9]+]]:dataregs = COPY $d4 | ||
; CHECK: [[CLZ_dd:%[0-9]+]]:dataregs = CLZ_dd [[COPY]] | ||
; CHECK: $d4 = COPY [[CLZ_dd]] | ||
%0(s32) = COPY $d4 | ||
%1(s32) = G_CTLZ %0 | ||
$d4 = COPY %1(s32) | ||
... |