[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / CodeGen / AMDGPU / GlobalISel / regbankselect-amdgcn.wqm.mir
blobe0e15e21ac8c7821833afe6342cdd1506104499a
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect -regbankselect-fast -verify-machineinstrs -o - %s | FileCheck %s
3 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect -regbankselect-greedy -verify-machineinstrs -o - %s | FileCheck %s
5 ---
6 name: wqm_s
7 legalized: true
9 body: |
10   bb.0:
11     liveins: $sgpr0
12     ; CHECK-LABEL: name: wqm_s
13     ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
14     ; CHECK: [[INT:%[0-9]+]]:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.wqm), [[COPY]](s32)
15     %0:_(s32) = COPY $sgpr0
16     %1:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.wqm), %0
17 ...
19 ---
20 name: wqm_v
21 legalized: true
23 body: |
24   bb.0:
25     liveins: $vgpr0
26     ; CHECK-LABEL: name: wqm_v
27     ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
28     ; CHECK: [[INT:%[0-9]+]]:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.wqm), [[COPY]](s32)
29     %0:_(s32) = COPY $vgpr0
30     %1:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.wqm), %0
31 ...