diff options
author | Vincent Lejeune <vljn@ovi.com> | 2013-10-13 17:56:10 +0000 |
---|---|---|
committer | Vincent Lejeune <vljn@ovi.com> | 2013-10-13 17:56:10 +0000 |
commit | f2b3a569ae25dbba264cef93602b4147d2a723d6 (patch) | |
tree | 857095c64034e715e31ce2dcd5e14b7b1af4c5e8 /test | |
parent | 91ec4b0cac7a7476a9d30d6f1adbf218ee6673a0 (diff) | |
download | external_llvm-f2b3a569ae25dbba264cef93602b4147d2a723d6.zip external_llvm-f2b3a569ae25dbba264cef93602b4147d2a723d6.tar.gz external_llvm-f2b3a569ae25dbba264cef93602b4147d2a723d6.tar.bz2 |
R600: Use masked read sel for texture instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/R600/swizzle-export.ll | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/test/CodeGen/R600/swizzle-export.ll b/test/CodeGen/R600/swizzle-export.ll index 02fe13a..9a58f66 100644 --- a/test/CodeGen/R600/swizzle-export.ll +++ b/test/CodeGen/R600/swizzle-export.ll @@ -93,6 +93,7 @@ main_body: } ; EG-CHECK: @main2 +; EG-CHECK: T{{[0-9]+}}.XY__ ; EG-CHECK: T{{[0-9]+}}.YXZ0 define void @main2() #0 { @@ -110,14 +111,12 @@ main_body: %10 = extractelement <4 x float> %9, i32 1 %11 = insertelement <4 x float> undef, float %0, i32 0 %12 = insertelement <4 x float> %11, float %1, i32 1 - %13 = insertelement <4 x float> %12, float %2, i32 2 - %14 = insertelement <4 x float> %13, float %3, i32 3 - call void @llvm.R600.store.swizzle(<4 x float> %14, i32 60, i32 1) - %15 = insertelement <4 x float> undef, float %6, i32 0 - %16 = insertelement <4 x float> %15, float %8, i32 1 - %17 = insertelement <4 x float> %16, float %10, i32 2 - %18 = insertelement <4 x float> %17, float 0.000000e+00, i32 3 - call void @llvm.R600.store.swizzle(<4 x float> %18, i32 0, i32 2) + call void @llvm.R600.store.swizzle(<4 x float> %12, i32 60, i32 1) + %13 = insertelement <4 x float> undef, float %6, i32 0 + %14 = insertelement <4 x float> %13, float %8, i32 1 + %15 = insertelement <4 x float> %14, float %10, i32 2 + %16 = insertelement <4 x float> %15, float 0.000000e+00, i32 3 + call void @llvm.R600.store.swizzle(<4 x float> %16, i32 0, i32 2) ret void } |