Frederik Harwath b40d233797
[AMDGPU] Fix PR #157408 test failures (#157823)
The test introduced by PR #157408 requires the amdgpu target. Move it to
the subdirectory which only runs if the target is available.
2025-09-10 10:25:21 +00:00

21 lines
1.0 KiB
LLVM

; RUN: opt -mtriple=amdgcn -passes="expand-fp<O0>" %s -S -o /dev/null
; RUN: opt -mtriple=amdgcn -passes="expand-fp<O1>" %s -S -o /dev/null
; RUN: opt -mtriple=amdgcn -passes="expand-fp<O2>" %s -S -o /dev/null
; RUN: opt -mtriple=amdgcn -passes="expand-fp<O3>" %s -S -o /dev/null
; RUN: not opt -mtriple=amdgcn -passes="expand-fp<O4>" %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=TOO-LARGE %s
; TOO-LARGE: {{.*}}invalid optimization level for expand-fp pass: 4
; RUN: not opt -mtriple=amdgcn -passes="expand-fp<Os>" %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=NON-NUMERIC %s
; NON-NUMERIC: {{.*}}invalid expand-fp pass parameter
; RUN: not opt -mtriple=amdgcn -passes="expand-fp<O-1>" %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=NEGATIVE %s
; NEGATIVE: {{.*}}invalid expand-fp pass parameter 'O-1'
; RUN: not opt -mtriple=amdgcn -passes="expand-fp<foo>" %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=NO-O-PREFIX %s
; NO-O-PREFIX: {{.*}}invalid expand-fp pass parameter 'foo'
define void @empty() {
ret void
}