forked from OSchip/llvm-project
305 lines
12 KiB
YAML
305 lines
12 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=tahiti -O0 -run-pass=legalizer %s -o - | FileCheck -check-prefix=SI %s
|
|
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -O0 -run-pass=legalizer %s -o - | FileCheck -check-prefix=VI %s
|
|
# RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx900 -O0 -run-pass=legalizer %s -o - | FileCheck -check-prefix=GFX9 %s
|
|
|
|
---
|
|
name: test_lshr_i32_i32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1
|
|
|
|
; SI-LABEL: name: test_lshr_i32_i32
|
|
; SI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; SI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; SI: [[LSHR:%[0-9]+]]:_(s32) = G_LSHR [[COPY]], [[COPY1]](s32)
|
|
; SI: $vgpr0 = COPY [[LSHR]](s32)
|
|
; VI-LABEL: name: test_lshr_i32_i32
|
|
; VI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; VI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; VI: [[LSHR:%[0-9]+]]:_(s32) = G_LSHR [[COPY]], [[COPY1]](s32)
|
|
; VI: $vgpr0 = COPY [[LSHR]](s32)
|
|
; GFX9-LABEL: name: test_lshr_i32_i32
|
|
; GFX9: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; GFX9: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; GFX9: [[LSHR:%[0-9]+]]:_(s32) = G_LSHR [[COPY]], [[COPY1]](s32)
|
|
; GFX9: $vgpr0 = COPY [[LSHR]](s32)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = G_LSHR %0, %1
|
|
$vgpr0 = COPY %2
|
|
...
|
|
---
|
|
name: test_lshr_i64_i64
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2_vgpr3
|
|
|
|
; SI-LABEL: name: test_lshr_i64_i64
|
|
; SI: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; SI: [[COPY1:%[0-9]+]]:_(s64) = COPY $vgpr2_vgpr3
|
|
; SI: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[COPY1]](s64)
|
|
; SI: [[LSHR:%[0-9]+]]:_(s64) = G_LSHR [[COPY]], [[TRUNC]](s32)
|
|
; SI: $vgpr0_vgpr1 = COPY [[LSHR]](s64)
|
|
; VI-LABEL: name: test_lshr_i64_i64
|
|
; VI: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; VI: [[COPY1:%[0-9]+]]:_(s64) = COPY $vgpr2_vgpr3
|
|
; VI: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[COPY1]](s64)
|
|
; VI: [[LSHR:%[0-9]+]]:_(s64) = G_LSHR [[COPY]], [[TRUNC]](s32)
|
|
; VI: $vgpr0_vgpr1 = COPY [[LSHR]](s64)
|
|
; GFX9-LABEL: name: test_lshr_i64_i64
|
|
; GFX9: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; GFX9: [[COPY1:%[0-9]+]]:_(s64) = COPY $vgpr2_vgpr3
|
|
; GFX9: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[COPY1]](s64)
|
|
; GFX9: [[LSHR:%[0-9]+]]:_(s64) = G_LSHR [[COPY]], [[TRUNC]](s32)
|
|
; GFX9: $vgpr0_vgpr1 = COPY [[LSHR]](s64)
|
|
%0:_(s64) = COPY $vgpr0_vgpr1
|
|
%1:_(s64) = COPY $vgpr2_vgpr3
|
|
%2:_(s64) = G_LSHR %0, %1
|
|
$vgpr0_vgpr1 = COPY %2
|
|
...
|
|
---
|
|
name: test_lshr_i64_i32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2
|
|
|
|
; SI-LABEL: name: test_lshr_i64_i32
|
|
; SI: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; SI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; SI: [[LSHR:%[0-9]+]]:_(s64) = G_LSHR [[COPY]], [[COPY1]](s32)
|
|
; SI: $vgpr0_vgpr1 = COPY [[LSHR]](s64)
|
|
; VI-LABEL: name: test_lshr_i64_i32
|
|
; VI: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; VI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; VI: [[LSHR:%[0-9]+]]:_(s64) = G_LSHR [[COPY]], [[COPY1]](s32)
|
|
; VI: $vgpr0_vgpr1 = COPY [[LSHR]](s64)
|
|
; GFX9-LABEL: name: test_lshr_i64_i32
|
|
; GFX9: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; GFX9: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; GFX9: [[LSHR:%[0-9]+]]:_(s64) = G_LSHR [[COPY]], [[COPY1]](s32)
|
|
; GFX9: $vgpr0_vgpr1 = COPY [[LSHR]](s64)
|
|
%0:_(s64) = COPY $vgpr0_vgpr1
|
|
%1:_(s32) = COPY $vgpr2
|
|
%2:_(s64) = G_LSHR %0, %1
|
|
$vgpr0_vgpr1 = COPY %2
|
|
...
|
|
---
|
|
name: test_lshr_i64_i16
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2
|
|
|
|
; SI-LABEL: name: test_lshr_i64_i16
|
|
; SI: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; SI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; SI: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 65535
|
|
; SI: [[COPY2:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; SI: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C]]
|
|
; SI: [[LSHR:%[0-9]+]]:_(s64) = G_LSHR [[COPY]], [[AND]](s32)
|
|
; SI: $vgpr0_vgpr1 = COPY [[LSHR]](s64)
|
|
; VI-LABEL: name: test_lshr_i64_i16
|
|
; VI: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; VI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; VI: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 65535
|
|
; VI: [[COPY2:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; VI: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C]]
|
|
; VI: [[LSHR:%[0-9]+]]:_(s64) = G_LSHR [[COPY]], [[AND]](s32)
|
|
; VI: $vgpr0_vgpr1 = COPY [[LSHR]](s64)
|
|
; GFX9-LABEL: name: test_lshr_i64_i16
|
|
; GFX9: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; GFX9: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; GFX9: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 65535
|
|
; GFX9: [[COPY2:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; GFX9: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C]]
|
|
; GFX9: [[LSHR:%[0-9]+]]:_(s64) = G_LSHR [[COPY]], [[AND]](s32)
|
|
; GFX9: $vgpr0_vgpr1 = COPY [[LSHR]](s64)
|
|
%0:_(s64) = COPY $vgpr0_vgpr1
|
|
%1:_(s32) = COPY $vgpr2
|
|
%2:_(s16) = G_TRUNC %1
|
|
%3:_(s64) = G_LSHR %0, %2
|
|
$vgpr0_vgpr1 = COPY %3
|
|
...
|
|
|
|
---
|
|
name: test_lshr_i16_i32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1
|
|
|
|
; SI-LABEL: name: test_lshr_i16_i32
|
|
; SI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; SI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; SI: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 65535
|
|
; SI: [[COPY2:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
|
|
; SI: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C]]
|
|
; SI: [[LSHR:%[0-9]+]]:_(s32) = G_LSHR [[AND]], [[COPY1]](s32)
|
|
; SI: [[COPY3:%[0-9]+]]:_(s32) = COPY [[LSHR]](s32)
|
|
; SI: $vgpr0 = COPY [[COPY3]](s32)
|
|
; VI-LABEL: name: test_lshr_i16_i32
|
|
; VI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; VI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; VI: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[COPY]](s32)
|
|
; VI: [[LSHR:%[0-9]+]]:_(s16) = G_LSHR [[TRUNC]], [[COPY1]](s32)
|
|
; VI: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[LSHR]](s16)
|
|
; VI: $vgpr0 = COPY [[ANYEXT]](s32)
|
|
; GFX9-LABEL: name: test_lshr_i16_i32
|
|
; GFX9: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; GFX9: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; GFX9: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[COPY]](s32)
|
|
; GFX9: [[LSHR:%[0-9]+]]:_(s16) = G_LSHR [[TRUNC]], [[COPY1]](s32)
|
|
; GFX9: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[LSHR]](s16)
|
|
; GFX9: $vgpr0 = COPY [[ANYEXT]](s32)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s16) = G_TRUNC %0
|
|
%3:_(s16) = G_LSHR %2, %1
|
|
%4:_(s32) = G_ANYEXT %3
|
|
$vgpr0 = COPY %4
|
|
...
|
|
|
|
---
|
|
name: test_lshr_i16_i16
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1
|
|
|
|
; SI-LABEL: name: test_lshr_i16_i16
|
|
; SI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; SI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; SI: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 65535
|
|
; SI: [[COPY2:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
|
|
; SI: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C]]
|
|
; SI: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 65535
|
|
; SI: [[COPY3:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; SI: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C1]]
|
|
; SI: [[LSHR:%[0-9]+]]:_(s32) = G_LSHR [[AND]], [[AND1]](s32)
|
|
; SI: [[COPY4:%[0-9]+]]:_(s32) = COPY [[LSHR]](s32)
|
|
; SI: $vgpr0 = COPY [[COPY4]](s32)
|
|
; VI-LABEL: name: test_lshr_i16_i16
|
|
; VI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; VI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; VI: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[COPY]](s32)
|
|
; VI: [[TRUNC1:%[0-9]+]]:_(s16) = G_TRUNC [[COPY1]](s32)
|
|
; VI: [[LSHR:%[0-9]+]]:_(s16) = G_LSHR [[TRUNC]], [[TRUNC1]](s16)
|
|
; VI: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[LSHR]](s16)
|
|
; VI: $vgpr0 = COPY [[ANYEXT]](s32)
|
|
; GFX9-LABEL: name: test_lshr_i16_i16
|
|
; GFX9: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; GFX9: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; GFX9: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[COPY]](s32)
|
|
; GFX9: [[TRUNC1:%[0-9]+]]:_(s16) = G_TRUNC [[COPY1]](s32)
|
|
; GFX9: [[LSHR:%[0-9]+]]:_(s16) = G_LSHR [[TRUNC]], [[TRUNC1]](s16)
|
|
; GFX9: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[LSHR]](s16)
|
|
; GFX9: $vgpr0 = COPY [[ANYEXT]](s32)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s16) = G_TRUNC %0
|
|
%3:_(s16) = G_TRUNC %1
|
|
%4:_(s16) = G_LSHR %2, %3
|
|
%5:_(s32) = G_ANYEXT %4
|
|
$vgpr0 = COPY %5
|
|
...
|
|
|
|
---
|
|
name: test_lshr_i16_i8
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1
|
|
|
|
; SI-LABEL: name: test_lshr_i16_i8
|
|
; SI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; SI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; SI: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 65535
|
|
; SI: [[COPY2:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
|
|
; SI: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C]]
|
|
; SI: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; SI: [[COPY3:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; SI: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C1]]
|
|
; SI: [[LSHR:%[0-9]+]]:_(s32) = G_LSHR [[AND]], [[AND1]](s32)
|
|
; SI: [[COPY4:%[0-9]+]]:_(s32) = COPY [[LSHR]](s32)
|
|
; SI: $vgpr0 = COPY [[COPY4]](s32)
|
|
; VI-LABEL: name: test_lshr_i16_i8
|
|
; VI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; VI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; VI: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[COPY]](s32)
|
|
; VI: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; VI: [[COPY2:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; VI: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C]]
|
|
; VI: [[LSHR:%[0-9]+]]:_(s16) = G_LSHR [[TRUNC]], [[AND]](s32)
|
|
; VI: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[LSHR]](s16)
|
|
; VI: $vgpr0 = COPY [[ANYEXT]](s32)
|
|
; GFX9-LABEL: name: test_lshr_i16_i8
|
|
; GFX9: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; GFX9: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; GFX9: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[COPY]](s32)
|
|
; GFX9: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; GFX9: [[COPY2:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; GFX9: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C]]
|
|
; GFX9: [[LSHR:%[0-9]+]]:_(s16) = G_LSHR [[TRUNC]], [[AND]](s32)
|
|
; GFX9: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[LSHR]](s16)
|
|
; GFX9: $vgpr0 = COPY [[ANYEXT]](s32)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s16) = G_TRUNC %0
|
|
%3:_(s8) = G_TRUNC %1
|
|
%4:_(s16) = G_LSHR %2, %3
|
|
%5:_(s32) = G_ANYEXT %4
|
|
$vgpr0 = COPY %5
|
|
...
|
|
|
|
---
|
|
name: test_lshr_i8_i8
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1
|
|
|
|
; SI-LABEL: name: test_lshr_i8_i8
|
|
; SI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; SI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; SI: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; SI: [[COPY2:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
|
|
; SI: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C]]
|
|
; SI: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; SI: [[COPY3:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; SI: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C1]]
|
|
; SI: [[LSHR:%[0-9]+]]:_(s32) = G_LSHR [[AND]], [[AND1]](s32)
|
|
; SI: [[COPY4:%[0-9]+]]:_(s32) = COPY [[LSHR]](s32)
|
|
; SI: $vgpr0 = COPY [[COPY4]](s32)
|
|
; VI-LABEL: name: test_lshr_i8_i8
|
|
; VI: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; VI: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; VI: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; VI: [[COPY2:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
|
|
; VI: [[COPY3:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; VI: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[COPY3]]
|
|
; VI: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[AND]](s32)
|
|
; VI: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; VI: [[COPY4:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; VI: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY4]], [[C1]]
|
|
; VI: [[LSHR:%[0-9]+]]:_(s16) = G_LSHR [[TRUNC]], [[AND1]](s32)
|
|
; VI: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[LSHR]](s16)
|
|
; VI: $vgpr0 = COPY [[ANYEXT]](s32)
|
|
; GFX9-LABEL: name: test_lshr_i8_i8
|
|
; GFX9: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; GFX9: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; GFX9: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; GFX9: [[COPY2:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
|
|
; GFX9: [[COPY3:%[0-9]+]]:_(s32) = COPY [[C]](s32)
|
|
; GFX9: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[COPY3]]
|
|
; GFX9: [[TRUNC:%[0-9]+]]:_(s16) = G_TRUNC [[AND]](s32)
|
|
; GFX9: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 255
|
|
; GFX9: [[COPY4:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
|
|
; GFX9: [[AND1:%[0-9]+]]:_(s32) = G_AND [[COPY4]], [[C1]]
|
|
; GFX9: [[LSHR:%[0-9]+]]:_(s16) = G_LSHR [[TRUNC]], [[AND1]](s32)
|
|
; GFX9: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[LSHR]](s16)
|
|
; GFX9: $vgpr0 = COPY [[ANYEXT]](s32)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s8) = G_TRUNC %0
|
|
%3:_(s8) = G_TRUNC %1
|
|
%4:_(s8) = G_LSHR %2, %3
|
|
%5:_(s32) = G_ANYEXT %4
|
|
$vgpr0 = COPY %5
|
|
...
|