Skip to content

Commit 6af6085

Browse files
committed
update tests
1 parent a878430 commit 6af6085

File tree

8 files changed

+1020
-683
lines changed

8 files changed

+1020
-683
lines changed

llvm/test/CodeGen/AMDGPU/addrspacecast.ll

Lines changed: 973 additions & 5 deletions
Large diffs are not rendered by default.

llvm/test/CodeGen/AMDGPU/llvm.amdgcn.bitreplicate.ll

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,22 @@ entry:
1717
}
1818

1919
define i64 @test_s_bitreplicate_constant_zero() {
20+
; GFX11-LABEL: test_s_bitreplicate_constant_zero:
21+
; GFX11: ; %bb.0: ; %entry
22+
; GFX11-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
23+
; GFX11-NEXT: v_dual_mov_b32 v0, 0 :: v_dual_mov_b32 v1, 0
24+
; GFX11-NEXT: s_setpc_b64 s[30:31]
2025
entry:
2126
%br = call i64 @llvm.amdgcn.s.bitreplicate(i32 0)
2227
ret i64 %br
2328
}
2429

2530
define i64 @test_s_bitreplicate_constant_neg_one() {
31+
; GFX11-LABEL: test_s_bitreplicate_constant_neg_one:
32+
; GFX11: ; %bb.0: ; %entry
33+
; GFX11-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
34+
; GFX11-NEXT: v_dual_mov_b32 v0, -1 :: v_dual_mov_b32 v1, -1
35+
; GFX11-NEXT: s_setpc_b64 s[30:31]
2636
entry:
2737
%br = call i64 @llvm.amdgcn.s.bitreplicate(i32 -1)
2838
ret i64 %br
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Make sure that llvm-objdump --mcpu=v3 enables ALU32 feature.
2+
//
3+
// Only test a few instructions here, assembler-disassembler.s is more
4+
// comprehensive but uses --mattr=+alu32 option.
5+
//
6+
// RUN: llvm-mc -triple bpfel --mcpu=v3 --assemble --filetype=obj %s -o %t
7+
// RUN: llvm-objdump -d --mcpu=v2 %t | FileCheck %s --check-prefix=V2
8+
// RUN: llvm-objdump -d --mcpu=v3 %t | FileCheck %s --check-prefix=V3
9+
10+
w0 = *(u32 *)(r1 + 0)
11+
lock *(u32 *)(r1 + 0x1) &= w2
12+
13+
14+
// V2: 61 10 00 00 00 00 00 00 r0 = *(u32 *)(r1 + 0x0)
15+
// V2: c3 21 01 00 50 00 00 00 <unknown>
16+
17+
// V3: 61 10 00 00 00 00 00 00 w0 = *(u32 *)(r1 + 0x0)
18+
// V3: c3 21 01 00 50 00 00 00 lock *(u32 *)(r1 + 0x1) &= w2

llvm/test/CodeGen/BPF/inlineasm-wreg.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
; CHECK-LABEL: test_inlineasm_w_input_constraint
66
define dso_local i32 @test_inlineasm_w_input_constraint() {
77
tail call void asm sideeffect "w0 = $0", "w"(i32 42)
8-
; CHECK: w0 = w1
8+
; CHECK: w0 = w0
99
ret i32 42
1010
}
1111

0 commit comments

Comments
 (0)