|
1 | | -; RUN: llc -mtriple=amdgcn -mcpu=tahiti -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s |
2 | | -; RUN: llc -mtriple=amdgcn -mcpu=tonga -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s |
| 1 | +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 |
| 2 | +; RUN: llc -mtriple=amdgcn -mcpu=tahiti -o - %s | FileCheck -check-prefixes=GCN,GFX6 %s |
| 3 | +; RUN: llc -mtriple=amdgcn -mcpu=tonga -o - %s | FileCheck -check-prefixes=GCN,GFX8 %s |
3 | 4 |
|
4 | | -; GCN-LABEL:{{^}}row_filter_C1_D0: |
5 | 5 | define amdgpu_kernel void @row_filter_C1_D0() #0 { |
| 6 | +; GCN-LABEL: row_filter_C1_D0: |
| 7 | +; GCN: ; %bb.0: ; %entry |
| 8 | +; GCN-NEXT: s_cbranch_scc1 .LBB0_2 |
| 9 | +; GCN-NEXT: ; %bb.1: ; %do.body.preheader |
| 10 | +; GCN-NEXT: .LBB0_2: ; %for.inc.1 |
6 | 11 | entry: |
7 | 12 | br i1 undef, label %for.inc.1, label %do.body.preheader |
8 | 13 |
|
@@ -40,9 +45,28 @@ for.inc.1: ; preds = %do.body.1562.prehea |
40 | 45 | unreachable |
41 | 46 | } |
42 | 47 |
|
43 | | -; GCN-LABEL: {{^}}foo: |
44 | | -; GCN: s_endpgm |
45 | 48 | define amdgpu_ps void @foo() #0 { |
| 49 | +; GCN-LABEL: foo: |
| 50 | +; GCN: ; %bb.0: ; %bb |
| 51 | +; GCN-NEXT: s_mov_b64 s[0:1], -1 |
| 52 | +; GCN-NEXT: s_cbranch_scc0 .LBB1_2 |
| 53 | +; GCN-NEXT: ; %bb.1: ; %bb24 |
| 54 | +; GCN-NEXT: s_mov_b64 s[0:1], 0 |
| 55 | +; GCN-NEXT: .LBB1_2: ; %Flow1 |
| 56 | +; GCN-NEXT: s_and_b64 vcc, exec, s[0:1] |
| 57 | +; GCN-NEXT: s_cbranch_vccz .LBB1_4 |
| 58 | +; GCN-NEXT: ; %bb.3: ; %bb9 |
| 59 | +; GCN-NEXT: image_sample v[0:1], v0, s[0:7], s[0:3] dmask:0xa |
| 60 | +; GCN-NEXT: s_branch .LBB1_5 |
| 61 | +; GCN-NEXT: .LBB1_4: |
| 62 | +; GCN-NEXT: v_mov_b32_e32 v1, 0 |
| 63 | +; GCN-NEXT: v_mov_b32_e32 v0, v1 |
| 64 | +; GCN-NEXT: .LBB1_5: ; %bb14 |
| 65 | +; GCN-NEXT: s_waitcnt vmcnt(0) |
| 66 | +; GCN-NEXT: v_mul_f32_e32 v0, 0x41280000, v0 |
| 67 | +; GCN-NEXT: v_mul_f32_e32 v1, 0x41380000, v1 |
| 68 | +; GCN-NEXT: exp mrt0 v1, v0, v0, v0 done vm |
| 69 | +; GCN-NEXT: s_endpgm |
46 | 70 | bb: |
47 | 71 | br i1 undef, label %bb2, label %bb1 |
48 | 72 |
|
@@ -101,3 +125,6 @@ declare <4 x float> @llvm.amdgcn.image.sample.1d.v4f32.f32(i32, float, <8 x i32> |
101 | 125 |
|
102 | 126 | attributes #0 = { nounwind } |
103 | 127 | attributes #1 = { nounwind readonly } |
| 128 | +;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: |
| 129 | +; GFX6: {{.*}} |
| 130 | +; GFX8: {{.*}} |
0 commit comments