Skip to content

Commit

Permalink
[DPWBS-1164] test(RegisterBankSelect): add G_SEXT_INREG test
Browse files Browse the repository at this point in the history
  • Loading branch information
gargaroff committed Jan 23, 2020
1 parent 19477ba commit bcae1a2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions llvm/test/CodeGen/TriCore/GlobalIsel/regbankselect-ext-trunc.mir
Expand Up @@ -180,3 +180,21 @@ body: |
$e4 = COPY %10(s64)
$e4 = COPY %11(s64)
...

---
name: test_sext_inreg
legalized: true
registers:
- { id: 0, class: _ }
- { id: 1, class: _ }
body: |
bb.0:
liveins: $e4
; CHECK-LABEL: name: test_sext_inreg
; CHECK: [[DEF:%[0-9]+]]:dataregbank(s64) = G_IMPLICIT_DEF
; CHECK: [[SEXT_INREG:%[0-9]+]]:dataregbank(s64) = G_SEXT_INREG [[DEF]], 16
; CHECK: $e4 = COPY [[SEXT_INREG]](s64)
%0(s64) = G_IMPLICIT_DEF
%1(s64) = G_SEXT_INREG %0(s64), 16
$e4 = COPY %1(s64)
...

0 comments on commit bcae1a2

Please sign in to comment.