~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/AMDGPU/fmin.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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(<4 x float> inreg %reg0) #0 {
 
6
   %r0 = extractelement <4 x float> %reg0, i32 0
 
7
   %r1 = extractelement <4 x float> %reg0, i32 1
 
8
   %r2 = fcmp uge float %r0, %r1
 
9
   %r3 = select i1 %r2, float %r1, float %r0
 
10
   %vec = insertelement <4 x float> undef, float %r3, i32 0
 
11
   call void @llvm.R600.store.swizzle(<4 x float> %vec, i32 0, i32 0)
 
12
   ret void
 
13
}
 
14
 
 
15
declare void @llvm.R600.store.swizzle(<4 x float>, i32, i32)
 
16
 
 
17
attributes #0 = { "ShaderType"="0" }
 
 
b'\\ No newline at end of file'