Skip to content

AMDGPU: Replace i16 undefs with poison in tests #131084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions llvm/test/CodeGen/AMDGPU/inline-constraints.ll
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ define i32 @inline_A_constraint_V1() {

; NOGCN: error: invalid operand for inline asm constraint 'A'
define i32 @inline_A_constraint_V2() {
%v0 = tail call i32 asm "v_mov_b32 $0, $1", "=v,A"(<2 x i16> <i16 -4, i16 undef>)
%v0 = tail call i32 asm "v_mov_b32 $0, $1", "=v,A"(<2 x i16> <i16 -4, i16 poison>)
ret i32 %v0
}

Expand Down Expand Up @@ -456,7 +456,7 @@ define i32 @inline_I_constraint_V1() {

; NOGCN: error: invalid operand for inline asm constraint 'I'
define i32 @inline_I_constraint_V2() {
%v0 = tail call i32 asm "v_mov_b32 $0, $1", "=v,I"(<2 x i16> <i16 -4, i16 undef>)
%v0 = tail call i32 asm "v_mov_b32 $0, $1", "=v,I"(<2 x i16> <i16 -4, i16 poison>)
ret i32 %v0
}

Expand Down Expand Up @@ -1160,7 +1160,7 @@ define i32 @inline_DA_constraint_V1() {

; NOGCN: error: invalid operand for inline asm constraint 'DA'
define i32 @inline_DA_constraint_V2() {
%v0 = tail call i32 asm "v_mov_b32 $0, $1", "=v,^DA"(<2 x i16> <i16 -4, i16 undef>)
%v0 = tail call i32 asm "v_mov_b32 $0, $1", "=v,^DA"(<2 x i16> <i16 -4, i16 poison>)
ret i32 %v0
}

Expand Down
4 changes: 2 additions & 2 deletions llvm/test/CodeGen/AMDGPU/shrink-add-sub-constant.ll
Original file line number Diff line number Diff line change
Expand Up @@ -4249,7 +4249,7 @@ define amdgpu_kernel void @v_test_v2i16_x_add_undef_neg32(ptr addrspace(1) %out,
%gep = getelementptr inbounds <2 x i16>, ptr addrspace(1) %in, i64 %tid.ext
%gep.out = getelementptr inbounds <2 x i16>, ptr addrspace(1) %out, i64 %tid.ext
%x = load <2 x i16>, ptr addrspace(1) %gep
%result = add <2 x i16> %x, <i16 undef, i16 -32>
%result = add <2 x i16> %x, <i16 poison, i16 -32>
store <2 x i16> %result, ptr addrspace(1) %gep.out
ret void
}
Expand Down Expand Up @@ -4403,7 +4403,7 @@ define amdgpu_kernel void @v_test_v2i16_x_add_neg32_undef(ptr addrspace(1) %out,
%gep = getelementptr inbounds <2 x i16>, ptr addrspace(1) %in, i64 %tid.ext
%gep.out = getelementptr inbounds <2 x i16>, ptr addrspace(1) %out, i64 %tid.ext
%x = load <2 x i16>, ptr addrspace(1) %gep
%result = add <2 x i16> %x, <i16 -32, i16 undef>
%result = add <2 x i16> %x, <i16 -32, i16 poison>
store <2 x i16> %result, ptr addrspace(1) %gep.out
ret void
}
Expand Down
Loading