
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.
37 lines
1.7 KiB
LLVM
37 lines
1.7 KiB
LLVM
; RUN: llc < %s -mtriple=amdgcn -filetype=obj | llvm-readobj -S --symbols --file-headers - | FileCheck --check-prefix=ELF %s
|
|
; RUN: llc < %s -mtriple=amdgcn -o - | FileCheck --check-prefix=CONFIG --check-prefix=TYPICAL %s
|
|
; RUN: llc < %s -mtriple=amdgcn -mcpu=tonga -mattr=-flat-for-global -filetype=obj | llvm-readobj -S --symbols --file-headers - | FileCheck --check-prefix=ELF %s
|
|
; RUN: llc < %s -mtriple=amdgcn -mcpu=tonga -mattr=-flat-for-global -o - | FileCheck --check-prefix=CONFIG --check-prefix=TONGA %s
|
|
; RUN: llc < %s -mtriple=amdgcn -mcpu=carrizo -mattr=-flat-for-global -filetype=obj | llvm-readobj -S --symbols --file-headers - | FileCheck --check-prefix=ELF %s
|
|
; RUN: llc < %s -mtriple=amdgcn -mcpu=carrizo -mattr=-flat-for-global -o - | FileCheck --check-prefix=CONFIG --check-prefix=TYPICAL %s
|
|
|
|
; Test that we don't try to produce a COFF file on windows
|
|
; RUN: llc < %s -mtriple=amdgcn-pc-mingw -filetype=obj | llvm-readobj -S --symbols --file-headers - | FileCheck --check-prefix=ELF %s
|
|
|
|
; ELF: Format: elf64-amdgpu
|
|
; ELF: OS/ABI: SystemV (0x0)
|
|
; ELF: Machine: EM_AMDGPU (0xE0)
|
|
; ELF: Name: .AMDGPU.config
|
|
; ELF: Type: SHT_PROGBITS
|
|
|
|
; ELF: Symbol {
|
|
; ELF: Name: test
|
|
; ELF: Binding: Global
|
|
|
|
; CONFIG: .section .AMDGPU.config
|
|
; CONFIG-NEXT: .long 45096
|
|
; TYPICAL-NEXT: .long 0
|
|
; TONGA-NEXT: .long 704
|
|
; CONFIG: .p2align 8
|
|
; CONFIG: test:
|
|
define amdgpu_ps void @test(i32 %p) #0 {
|
|
%i = add i32 %p, 2
|
|
%r = bitcast i32 %i to float
|
|
call void @llvm.amdgcn.exp.f32(i32 0, i32 15, float %r, float %r, float %r, float %r, i1 true, i1 false)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.amdgcn.exp.f32(i32, i32, float, float, float, float, i1, i1) #0
|
|
|
|
attributes #0 = { nounwind }
|