mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-28 07:05:11 +00:00
7c9c6ed761
Essentially the same as the GEP change in r230786. A similar migration script can be used to update test cases, though a few more test case improvements/changes were required this time around: (r229269-r229278) import fileinput import sys import re pat = re.compile(r"((?:=|:|^)\s*load (?:atomic )?(?:volatile )?(.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$)") for line in sys.stdin: sys.stdout.write(re.sub(pat, r"\1, \2\3*\4", line)) Reviewers: rafael, dexonsmith, grosser Differential Revision: http://reviews.llvm.org/D7649 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230794 91177308-0d34-0410-b5e6-96231b3b80d8
100 lines
4.6 KiB
LLVM
100 lines
4.6 KiB
LLVM
; RUN: llc < %s -mtriple=x86_64-apple-darwin
|
|
; rdar://8154265
|
|
|
|
declare <4 x float> @llvm.x86.sse.max.ss(<4 x float>, <4 x float>) nounwind readnone
|
|
|
|
declare <4 x float> @llvm.x86.sse.min.ss(<4 x float>, <4 x float>) nounwind readnone
|
|
|
|
define void @_ZN2CA3OGL20fill_surface_mesh_3dERNS0_7ContextEPKNS_6Render13MeshTransformEPKNS0_5LayerEPNS0_7SurfaceEfNS0_13TextureFilterESC_f() nounwind optsize ssp {
|
|
entry:
|
|
br i1 undef, label %bb2.thread, label %bb2
|
|
|
|
bb2.thread: ; preds = %entry
|
|
br i1 undef, label %bb41, label %bb10.preheader
|
|
|
|
bb2: ; preds = %entry
|
|
unreachable
|
|
|
|
bb10.preheader: ; preds = %bb2.thread
|
|
br i1 undef, label %bb9, label %bb12
|
|
|
|
bb9: ; preds = %bb9, %bb10.preheader
|
|
br i1 undef, label %bb9, label %bb12
|
|
|
|
bb12: ; preds = %bb9, %bb10.preheader
|
|
br i1 undef, label %bb4.i.i, label %bb3.i.i
|
|
|
|
bb3.i.i: ; preds = %bb12
|
|
unreachable
|
|
|
|
bb4.i.i: ; preds = %bb12
|
|
br i1 undef, label %bb8.i.i, label %_ZN2CA3OGL12_GLOBAL__N_16LightsC1ERNS0_7ContextEPKNS0_5LayerEPKNS_6Render13MeshTransformERKNS_4Vec3IfEESF_.exit
|
|
|
|
bb8.i.i: ; preds = %bb4.i.i
|
|
br i1 undef, label %_ZN2CA3OGL12_GLOBAL__N_16LightsC1ERNS0_7ContextEPKNS0_5LayerEPKNS_6Render13MeshTransformERKNS_4Vec3IfEESF_.exit, label %bb9.i.i
|
|
|
|
bb9.i.i: ; preds = %bb8.i.i
|
|
br i1 undef, label %bb11.i.i, label %bb10.i.i
|
|
|
|
bb10.i.i: ; preds = %bb9.i.i
|
|
unreachable
|
|
|
|
bb11.i.i: ; preds = %bb9.i.i
|
|
unreachable
|
|
|
|
_ZN2CA3OGL12_GLOBAL__N_16LightsC1ERNS0_7ContextEPKNS0_5LayerEPKNS_6Render13MeshTransformERKNS_4Vec3IfEESF_.exit: ; preds = %bb8.i.i, %bb4.i.i
|
|
br i1 undef, label %bb19, label %bb14
|
|
|
|
bb14: ; preds = %_ZN2CA3OGL12_GLOBAL__N_16LightsC1ERNS0_7ContextEPKNS0_5LayerEPKNS_6Render13MeshTransformERKNS_4Vec3IfEESF_.exit
|
|
unreachable
|
|
|
|
bb19: ; preds = %_ZN2CA3OGL12_GLOBAL__N_16LightsC1ERNS0_7ContextEPKNS0_5LayerEPKNS_6Render13MeshTransformERKNS_4Vec3IfEESF_.exit
|
|
br i1 undef, label %bb.i50, label %bb6.i
|
|
|
|
bb.i50: ; preds = %bb19
|
|
unreachable
|
|
|
|
bb6.i: ; preds = %bb19
|
|
br i1 undef, label %bb28, label %bb.nph106
|
|
|
|
bb22: ; preds = %bb24.preheader
|
|
br i1 undef, label %bb2.i.i, label %bb.i.i49
|
|
|
|
bb.i.i49: ; preds = %bb22
|
|
%0 = load float, float* undef, align 4 ; <float> [#uses=1]
|
|
%1 = insertelement <4 x float> undef, float %0, i32 0 ; <<4 x float>> [#uses=1]
|
|
%2 = call <4 x float> @llvm.x86.sse.min.ss(<4 x float> <float 1.000000e+00, float undef, float undef, float undef>, <4 x float> %1) nounwind readnone ; <<4 x float>> [#uses=1]
|
|
%3 = call <4 x float> @llvm.x86.sse.max.ss(<4 x float> %2, <4 x float> <float 0.000000e+00, float undef, float undef, float undef>) nounwind readnone ; <<4 x float>> [#uses=1]
|
|
%4 = extractelement <4 x float> %3, i32 0 ; <float> [#uses=1]
|
|
store float %4, float* undef, align 4
|
|
%5 = call <4 x float> @llvm.x86.sse.min.ss(<4 x float> <float 1.000000e+00, float undef, float undef, float undef>, <4 x float> undef) nounwind readnone ; <<4 x float>> [#uses=1]
|
|
%6 = call <4 x float> @llvm.x86.sse.max.ss(<4 x float> %5, <4 x float> <float 0.000000e+00, float undef, float undef, float undef>) nounwind readnone ; <<4 x float>> [#uses=1]
|
|
%7 = extractelement <4 x float> %6, i32 0 ; <float> [#uses=1]
|
|
store float %7, float* undef, align 4
|
|
unreachable
|
|
|
|
bb2.i.i: ; preds = %bb22
|
|
unreachable
|
|
|
|
bb26.loopexit: ; preds = %bb24.preheader
|
|
br i1 undef, label %bb28, label %bb24.preheader
|
|
|
|
bb.nph106: ; preds = %bb6.i
|
|
br label %bb24.preheader
|
|
|
|
bb24.preheader: ; preds = %bb.nph106, %bb26.loopexit
|
|
br i1 undef, label %bb22, label %bb26.loopexit
|
|
|
|
bb28: ; preds = %bb26.loopexit, %bb6.i
|
|
unreachable
|
|
|
|
bb41: ; preds = %bb2.thread
|
|
br i1 undef, label %return, label %bb46
|
|
|
|
bb46: ; preds = %bb41
|
|
ret void
|
|
|
|
return: ; preds = %bb41
|
|
ret void
|
|
}
|