Shilei Tian fc0653f31c
[RFC][NFC][AMDGPU] Remove -verify-machineinstrs from llvm/test/CodeGen/AMDGPU/*.ll (#150024)
Recent upstream trends have moved away from explicitly using `-verify-machineinstrs`, as it's already covered by the expensive checks. This PR removes almost all `-verify-machineinstrs` from tests in `llvm/test/CodeGen/AMDGPU/*.ll`, leaving only those tests where its removal currently causes failures.
2025-07-23 13:42:46 -04:00

17 lines
533 B
LLVM

; RUN: llc -mtriple=amdgcn -mcpu=tahiti -mattr=-promote-alloca < %s
; RUN: llc -mtriple=amdgcn -mcpu=tonga -mattr=-promote-alloca < %s
; Test that INSERT_SUBREG instructions don't have non-register operands after
; instruction selection.
; Make sure this doesn't crash
; CHECK-LABEL: test:
define amdgpu_kernel void @test(ptr addrspace(1) %out) {
entry:
%tmp0 = alloca [16 x i32], addrspace(5)
%tmp1 = ptrtoint ptr addrspace(5) %tmp0 to i32
%tmp2 = sext i32 %tmp1 to i64
store i64 %tmp2, ptr addrspace(1) %out
ret void
}