Skip to content

Commit 05c747f

Browse files
committed
AMDGPU: Fix broken negative test from ancient times
Before the dawn of civilization, instructions were printed in all caps using the raw tablegen pseudo-names. This -NOT check was looking for that, instead of the actual ISA output. Just switch to using generated checks. Also replace a use of undef.
1 parent 94c8fa6 commit 05c747f

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

llvm/test/CodeGen/AMDGPU/dead-machine-elim-after-dead-lane.ll

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1-
; RUN: llc -mtriple=amdgcn -verify-machineinstrs %s -o - | FileCheck %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 %s -o - | FileCheck %s
23

3-
; CHECK-LABEL: foo
4-
; CHECK-NOT: BUFFER_LOAD_DWORDX2_OFFSET
54
; After dead code elimination, that buffer load should be eliminated finally
65
; after dead lane detection.
76
define amdgpu_kernel void @foo() {
7+
; CHECK-LABEL: foo:
8+
; CHECK: ; %bb.0: ; %entry
9+
; CHECK-NEXT: s_cbranch_execnz .LBB0_2
10+
; CHECK-NEXT: ; %bb.1: ; %LeafBlock1
11+
; CHECK-NEXT: .LBB0_2: ; %foo.exit
12+
; CHECK-NEXT: s_mov_b32 s3, 0xf000
13+
; CHECK-NEXT: s_mov_b32 s2, -1
14+
; CHECK-NEXT: v_mov_b32_e32 v0, 0
15+
; CHECK-NEXT: buffer_store_dword v0, off, s[0:3], 0
16+
; CHECK-NEXT: s_endpgm
17+
; CHECK-NEXT: ; %bb.3: ; %sw.bb10
818
entry:
9-
switch i8 undef, label %foo.exit [
19+
switch i8 poison, label %foo.exit [
1020
i8 4, label %sw.bb4
1121
i8 10, label %sw.bb10
1222
]

0 commit comments

Comments
 (0)