Home | History | Annotate | Download | only in R600
      1 ;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
      2 
      3 ;CHECK: MIN * T{{[0-9]+\.[XYZW], T[0-9]+\.[XYZW], T[0-9]+\.[XYZW]}}
      4 
      5 define void @test() {
      6    %r0 = call float @llvm.R600.load.input(i32 0)
      7    %r1 = call float @llvm.R600.load.input(i32 1)
      8    %r2 = fcmp uge float %r0, %r1
      9    %r3 = select i1 %r2, float %r1, float %r0
     10    call void @llvm.AMDGPU.store.output(float %r3, i32 0)
     11    ret void
     12 }
     13 
     14 declare float @llvm.R600.load.input(i32) readnone
     15 
     16 declare void @llvm.AMDGPU.store.output(float, i32)
     17