[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / CodeGen / MIR / AMDGPU / intrinsics.mir
blob0650f9cfae2e89ba048fdad0d2532d447adf42d9
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -run-pass none -o - %s | FileCheck %s
4 --- |
6   define amdgpu_kernel void @use_intrin() {
7     ret void
8   }
10 ...
11 ---
12 # Completely invalid code, but it checks that intrinsics round-trip properly.
13 name:            use_intrin
14 registers:
15   - { id: 0, class: _ }
16 body: |
17   bb.0:
18     ; CHECK-LABEL: name: use_intrin
19     ; CHECK: %0:_(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.sbfe)
20     %0(s64) = G_INTRINSIC intrinsic(@llvm.amdgcn.sbfe.i32)
21 ...