Justin Bogner | d45849f | 2017-10-18 23:18:12 +0000 | [diff] [blame] | 1 | # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py |
Tim Northover | 6b3bd61 | 2016-07-29 20:32:59 +0000 | [diff] [blame] | 2 | # RUN: llc -mtriple=amdgcn -run-pass none -o - %s | FileCheck %s |
| 3 | |
| 4 | --- | |
| 5 | |
Matt Arsenault | 3dbeefa | 2017-03-21 21:39:51 +0000 | [diff] [blame] | 6 | define amdgpu_kernel void @use_intrin() { |
Tim Northover | 6b3bd61 | 2016-07-29 20:32:59 +0000 | [diff] [blame] | 7 | ret void |
| 8 | } |
| 9 | |
| 10 | ... |
| 11 | --- |
| 12 | # Completely invalid code, but it checks that intrinsics round-trip properly. |
Tim Northover | 6b3bd61 | 2016-07-29 20:32:59 +0000 | [diff] [blame] | 13 | name: use_intrin |
| 14 | registers: |
| 15 | - { id: 0, class: _ } |
| 16 | body: | |
| 17 | bb.0: |
Justin Bogner | d45849f | 2017-10-18 23:18:12 +0000 | [diff] [blame] | 18 | ; CHECK-LABEL: name: use_intrin |
Justin Bogner | 6c45283 | 2017-10-24 18:04:54 +0000 | [diff] [blame] | 19 | ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY intrinsic(@llvm.amdgcn.sbfe) |
Matt Arsenault | 754dd3e | 2017-04-03 18:08:08 +0000 | [diff] [blame] | 20 | %0(s64) = COPY intrinsic(@llvm.amdgcn.sbfe.i32) |
Tim Northover | 6b3bd61 | 2016-07-29 20:32:59 +0000 | [diff] [blame] | 21 | ... |